Database Vuser Functions (LRD) > Alphabetical List of Functions > lrd_save_col

lrd_save_col

Example: lrd_save_col Correlating Statements Functions

Saves the value of a table cell.

LRDRET lrd_save_col( LRD_CURSOR *mptCursor, unsigned int muiColNum, long mliRowNum, unsigned long muliOption, char *mpszParamName );

mptCursor A pointer to an LRD_CURSOR structure.
muiColNum The column number of the value to save.
muiRowNum The row number of the value to save. To save the last row, set the row number to zero.
muliOption One of the Save Column Options.
mpszParamName A parameter name using alpha-numerical characters, enclosed by quotation marks.

The lrd_save_col function saves the dynamic value of a specified table cell and assigns it to a parameter. This function is used for Correlating Statements and other SQL statements within a script. Instead of using the actual result fetched during a query, you replace the constant value with a parameter. This parameter can then be used by other database statements within the same script. Note that lrd_save_col always precedes an lrd_fetch statement.

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.