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

dam_getGroupByCol

Use this method to obtain column information about the columns specified as part of the GROUP BY clause.
int dam_getGroupByCol(
    long         hstmt,
    int          iGroupByColNum,
    xo_int       piColNum,
    StringBuffer pColName)
Table 184. Parameters for dam_getGroupByCol
Parameter
Type
Description
INPUT
hstmt
long
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)
OUTPUT
piColNum
xo_int
The column number as defined in the schema database.
pColName
StringBuffer
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.

See also

*dam_getInfo