Previous Topic

Next Topic

Describe Input

Valid in: ESQL

The Describe input statement returns information about the input parameter markers of a prepared statement. (Input parameter markers are denoted by "?" in the prepared statement.)

When there is a direct correspondence to a table column, such as positional mapping or direct comparison, the type of the table column is returned. Otherwise, a best guess of the type based on local context (such as the nearest resolvable operand) is returned.

Note: Best-guess types are typically returned as nullable. If no type guess is possible because of lack of context, a zero (illegal) type is returned, but the describe input operation succeeds.

Previous Topic

Next Topic

Syntax

The Describe Input statement has the following format:

EXEC SQL DESCRIBE INPUT statement_name

USING [SQL] DESCRIPTOR :descriptor_name

[WITHOUT NESTING]

The describe input statement cannot be issued until after the program allocates the SQLDA and sets the value of the SQLDA's sqln field to the number of elements in the SQLDA's sqlvar array. The results of the describe input statement are complete and valid only if the number of the statement parameter markers is less than or equal to the number of allocated sqlvar elements.


© 2007 Ingres Corporation. All rights reserved.