lrd_bind_cols

Example: lrd_bind_colsStatement Handling Functions

Binds a host variable array to columns.

LRDRET lrd_bind_cols( LRD_CURSOR *mptCursor, LRD_BIND_COL_INFO *mptBindColInfo, int miDBErrorSeverity);

mptCursor A pointer to an LRD_CURSOR structure.
mptBindColInfo A pointer to a pre-initialized array containing column binding information.
miDBErrorSeverity The Error Severity Levels of a failure in a database routine.

A host variable is automatically generated by VuGen. It has the following structure:

<column name>_D<data index>.

For example, &ENAME_D3 represents the third set of data whose column name is "ENAME".

The lrd_bind_cols function binds a host variable to an output column. VuGen generates an lrd_bind_col statement for all columns in the result set.

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.

Parameterization

You cannot use standard parameterization for any arguments in this function.