skip to main content
SQL Engine Parse Tree API : SQL Engine Parse Tree functions reference : damex_getTableByNum
 

damex_getTableByNum

This function returns the table handle that matches the given table number in the FROM clause of the SELECT query. Tables are numbered beginning at 0.
DAM_HTABLE damex_getTableByNum(
    DAM_HQUERY hquery,
    int iTableNum)
Table 231. Parameters for damex_getTableByNum
Parameter
Type
Description
IN
hquery
DAM_HQUERY
The query handle.
iTableNum
int
The number of the table.
RETURN
DAM_HTABLE
A handle to the table.
A NULL is returned if the table does not exist.