From 5e45211a64149b3c659b90ff2de6fa982a5a93ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:17:33 +0200 Subject: Adding upstream version 15.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/ecpg-sql-set-descriptor.html | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/src/sgml/html/ecpg-sql-set-descriptor.html (limited to 'doc/src/sgml/html/ecpg-sql-set-descriptor.html') diff --git a/doc/src/sgml/html/ecpg-sql-set-descriptor.html b/doc/src/sgml/html/ecpg-sql-set-descriptor.html new file mode 100644 index 0000000..d770b67 --- /dev/null +++ b/doc/src/sgml/html/ecpg-sql-set-descriptor.html @@ -0,0 +1,38 @@ + +SET DESCRIPTOR

SET DESCRIPTOR

SET DESCRIPTOR — set information in an SQL descriptor area

Synopsis

+SET DESCRIPTOR descriptor_name descriptor_header_item = value [, ... ]
+SET DESCRIPTOR descriptor_name VALUE number descriptor_item = value [, ...]
+

Description

+ 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. +

Parameters

descriptor_name

+ A descriptor name. +

descriptor_header_item

+ A token identifying which header information item to set. + Only COUNT, to set the number of descriptor + items, is currently supported. +

number

+ The number of the descriptor item to set. The count starts at + 1. +

descriptor_item

+ A token identifying which item of information to set in the + descriptor. See Section 36.7.1 for a + list of supported items. +

value

+ A value to store into the descriptor item. This can be an SQL + constant or a host variable. +

Examples

+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;
+

Compatibility

+ SET DESCRIPTOR is specified in the SQL standard. +

\ No newline at end of file -- cgit v1.2.3