4 SET DESCRIPTOR — set information in an SQL descriptor area
8 SET DESCRIPTOR descriptor_name descriptor_header_item = value [, ... ]
9 SET DESCRIPTOR descriptor_name VALUE number descriptor_item = value [, ...]
13 SET DESCRIPTOR populates an SQL descriptor area with values. The
14 descriptor area is then typically used to bind parameters in a prepared
17 This command has two forms: The first form applies to the descriptor
18 “header”, which is independent of a particular datum. The second form
19 assigns values to particular datums, identified by number.
26 descriptor_header_item #
27 A token identifying which header information item to set. Only
28 COUNT, to set the number of descriptor items, is currently
32 The number of the descriptor item to set. The count starts at 1.
35 A token identifying which item of information to set in the
36 descriptor. See Section 34.7.1 for a list of supported items.
39 A value to store into the descriptor item. This can be an SQL
40 constant or a host variable.
44 EXEC SQL SET DESCRIPTOR indesc COUNT = 1;
45 EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = 2;
46 EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1;
47 EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val1, DATA = 'some string';
48 EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2null, DATA = :val2;
52 SET DESCRIPTOR is specified in the SQL standard.
56 ALLOCATE DESCRIPTOR, GET DESCRIPTOR