SET DESCRIPTOR descriptor_name descriptor_header_item = value [, ... ] SET DESCRIPTOR descriptor_name VALUE number descriptor_item = value [, ...]
SET DESCRIPTOR populates an SQL descriptor area with values. The descriptor area is then typically used to bind parameters in a prepared query execution.
This command has two forms: The first form applies to the descriptor "header", which is independent of a particular datum. The second form assigns values to particular datums, identified by number.
A descriptor name.
A token identifying which header information item to set. Only COUNT, to set the number of descriptor items, is currently supported.
The number of the descriptor item to set. The count starts at 1.
A token identifying which item of information to set in the descriptor. See Section 33.7.1 for a list of supported items.
A value to store into the descriptor item. This can be an SQL constant or a host variable.
EXEC SQL SET DESCRIPTOR indesc COUNT = 1; EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = 2; EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1; EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val1, DATA = 'some string'; EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2null, DATA = :val2;
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
Proceed to the comment form.