Returns parameter information for a dynamic SQL query (a prepared statement) in XML format.
show_dynamic_params_in_xml(object_id)
select @@plwpid
---------------- 707749902
select show_dynamic_params_in_xml(707749902)
<?xml version="1.0" encoding="UTF-8"?> <query> <parameter> <number>1</number> <type>INT</type> <column>tab.col1</column> </parameter> </query>
Parameter |
Value |
Definition |
---|---|---|
number |
1 |
Dynamic parameter is in the statement’s first position |
type |
INT |
Table uses the int datatype |
column |
tab.col1 |
Query use the col1 column of the tab table |
show_dynamic_params_in_xml allows dynamic parameters in where clauses, the set clause of an update, and the values list of an insert.
select * from tab where col1 + 1 = ?
select * from tab where ? < 1000
delete tab where col1 + col2 > ?
update tab set col1 = ?