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.
See SaCursorColDynData for a more detailed discussion of binding variables.