skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getGroupByCol/dam_getGroupByColW
 

dam_getGroupByCol/dam_getGroupByColW

This function returns the column name and position in the schema of the specified group by column.
int dam_getGroupByCol(
DAM_HSTMT hstmt,
int iGroupByColNum,
int * piColNum,
char * pColName)

int dam_getGroupByColW(
DAM_HSTMT hstmt,
int iGroupByColNum,
int * piColNum,
OAWCHAR * pColName)
Table 121. Parameters for dam_getGroupByCol/dam_getGroupByColW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
iGroupByColNum
int
The GROUP BY column number about which to return information.
Valid numbers are 0 - (the value returned from dam_getInfo (DAM_INFO_GROUP_BY_OPTIMIZABLE) -1).
OUT
piColNum
int *
The column number as defined in the schema database
pColName
char *OAWCHAR *
The column name as defined in the schema database. Pass in a buffer of 128 characters.
RETURN
int
Status of the call:
DAM_SUCCESS - on success
DAM_FAILURE - wrong value for iGroupByColNum

See also

*dam_getInfo