dam_getColByNum
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This method returns the column handle for the given column number in schema. The column number is based on the order in which columns are defined in the OA_COLUMNS table of the schema database (see Schema definition and management in the DataDirect OpenAccess SDK SQL Engine Programmer’s Guide). The column numbers start from 0.
int64 dam_getColByNum(
int64 hstmt,
int iColumn);
Parameters for dam_getColByNum
| Parameter | Type | Description |
| IN | ||
| hstmt | int64 | The statement handle |
| iColumn | int | The column number in the schema. Numbers start from 0. |
| RETURN | ||
| int64 | The handle to the specified column. 0 is returned if the column does not exist. |