dam_getGroupByCol
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
Use this method to obtain column information about the columns specified as part of the GROUP BY clause.
int dam_getGroupByCol(
int64 hstmt,
int iGroupByColNum,
out int piColNum,
StringBuilder pColName)
Parameters for dam_getGroupByCol
| Parameter | Type | Description |
| IN | ||
| hstmt | int64 | The statement handle |
| iGroupByColNum | int | The number of the Group By column to return information about. Valid numbers: 0 – (Value returned from dam_getInfo (DAM_INFO_GROUP_BY_OPTIMIZABLE) -1) |
| OUT | ||
| piColNum | int | The column number as defined in the schema database |
| pColName | StringBuilder | The column name as defined in the schema database |
| RETURN | ||
| int | The status of the call: DAM_SUCCESS – on success DAM_FAILURE – wrong value for iGroupByColNum |