Handling a parameterized SELECT statement
You can handle a parameterized SELECT statement with an sqlda structure.
If a prepared SELECT statement has a WHERE clause with input parameters of unknown number and data type, your IBM® Informix® ESQL/C program must use an sqlda structure to define the input parameters.
For an introduction on how to determine input parameters, see Determine unknown input parameters.
To use an sqlda structure to define input parameters for a WHERE clause:
Important: If the SELECT statement has unknown
columns in the select list, your program must also handle these columns
with an sqlda structure. For more information, see Handling an unknown select list.