skip to main content
SQL Engine Parse Tree API : SQL Engine Parse Tree functions reference : damex_describeOrderByExp
 

damex_describeOrderByExp

This function is used to retrieve the description of the ORDER BY expression. Pass in NULL for any attributes you do not want.
int damex_describeOrderByexp(
    DAM_HVALEXP hValExp,
    int * piResultColNum,
    int * piSortOrder)
Table 191. Parameters for damex_describeOrderByExp
Parameter
Type
Description
IN
hValExp
DAM_HVALEXP
ORDER BY value expression handle.
OUT
piResultColNum
int *
The result column number.
piSortOrder
int *
The sort order of the ORDER BY column:
SQL_ORDER_ASC
SQL_ORDER_DESC
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure