dam_getGroupByCol/dam_getGroupByColW
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 9.0
- Documentation
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)
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 |