skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : dam_getColByNum
 

dam_getColByNum

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 Chapter 5 "Schema Definition and Management" of the OpenAccess SDK SQL Engine Programmer's Guide). The column numbers start from 0.
long dam_getColByNum(
     long hstmt,
     int  iColumn)
Table 165. Parameters for dam_getColByNum
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
iColumn
int
The column number in the schema, starting with 0.
RETURN
long
The handle to the specified column. A 0 is returned if the column does not exist.