Output Descriptors
Go Up to Understanding the XSQLDA
Output descriptors return values from an executed query to an application. The sqld field of the XSQLDA indicates how many values were returned. Each value is stored in a separate XSQLVAR structure. The XSQLDA sqlvar field points to the first of these XSQLVAR structures. The following statement string requires an output descriptor:
char *str = "SELECT * FROM CUSTOMER WHERE CUST_NO > 100";
For information about retrieving information from an output descriptor, see DSQL Programming Methods.