Programmer Guide : solidDB® SA : solidDB® SA function reference : SaCursorColLong
  
SaCursorColLong
SaCursorColLong binds a user variable to a database column.
After the variable has been bound, it can be used to hold a value that will be written to or read from a column, or that will be used to constrain a search operation (for example, as part of the equivalent of a WHERE clause in SQL). In search operations, the user variable is updated to contain the value read from the current row that has been retrieved. Also, if search criteria are involved, this function can be used to pass the values for them. In update and insert operations, the new value is taken from the bound user variable and then written to the column in the database.
Note The C-language “long” data type is platform-dependent, while the SQL data types (TINYINT, SMALLINT, INT, and BIGINT) are platform-independent. You must be careful to map the appropriate C-language data type and value to the corresponding SQL data type.
Synopsis
SaRetT SA_EXPORT_H SaCursorColLong(
  SaCursorT* scur,
  char* colname,
  long* longptr)
Parameters
Parameters
Usage type
Description
scur
in, use
Pointer to a cursor object
colname
in, use
Column name
longptr
in, hold
Pointer to the user variable
Return value
SA_RC_SUCC or error code.
See also
See SaCursorColDynData for a more detailed discussion of binding variables.
solidDB® SA function reference