lrd_bind_col

Example: lrd_bind_colStatement Handling Functions

Binds a host variable to a column.

LRDRET lrd_bind_col( LRD_CURSOR *mptCursor, int muiColNum, LRD_VAR_DESC *mptVarDesc, long mliOption, int miDBErrorSeverity);

mptCursor A pointer to an LRD_CURSOR structure.
muiColNumThe column number in the result set.
mptVarDesc A pointer to the descriptor of a variable to bind.
mliOption A database dependent option (NULL).
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_col 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.