dam_getOrderByCol
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This method returns the column name and position in the schema for the specified ORDER BY column.
int dam_getOrderByCol(
long hstmt,
int iOrderByColNum,
xo_int piColNum,
StringBuffer pColName,
xo_int piSortOrder)
Parameters for dam_getOrderByCol
| Parameter | Type | Description |
| INPUT | ||
| hstmt | long | The statement handle. |
| iOrderByColNum | int | The column number of the ORDER BY column (the column for which information is to be returned). |
| OUTPUT | ||
| piColNum | xo_int | The column number as defined in the schema database. |
| pColName | StringBuffer | The column name as defined in the schema database. |
| piSortOrder | xo_int | The sort order for the column: |
| RETURN | ||
| int | Status of the call: DAM_SUCCESS - on success DAM_FAILURE - wrong value for iOrderByColNum |
|