skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getColByNum
 

dam_getColByNum

This function returns the column handle for the given column number in schema. The column number is based on the order they are defined in the OA_COLUMNS table of the schema database (refer to "Schema Definition and Management" in the OpenAccess SDK SQL Engine Programmer's Guide). Column numbers start from 0.
DAM_HCOL dam_getColByNum(
DAM_HSTMT hstmt,
int iColumn)
Table 103. Parameters for dam_getColByNum
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
iColumn
int
The column number in the schema. Numbers start from 0.
RETURN
DAM_HCOL
The handle to the specified column. A NULL is returned if the column does not exist.