skip to main content
SQL Engine parse tree methods for Java : damex_describeInsertQuery
 

damex_describeInsertQuery

This method returns details about the INSERT query.
int damex_describeInsertQuery(
    long hquery,
    long phTable,
    long phColList,
    long phInsertRowList,
    long phInsertQuery)
Table 258. Parameters for damex_describeInsertQuery
Parameter
Type
Description
INPUT
hquery
long
The query handle.
OUTPUT
phTable
long
The handle to the insert table. Use damex_describeTable to get the table details.
phColList
long
The handle to the column list of the insert query. Use damex_getFirstColInList, damex_getNextColInList to get the insert columns and damex_describeCol to get each of the column details.
phInsertRowList
long
The handle to the rows containing the values specified in the INSERT query. Use damex_getFirstInsertRow, damex_getNextInsertRow to navigate the multiple insert value lists specified. If only one set of values are specified, the first call to damex_getNextInsertRow will return NULL. Use damex_getFirstInsertValExp and damex_getNextInsertValExp to navigate each of the rows.
phInsertQuery
long
The handle to the query whose result table rows are to be used as values to be inserted. The value of phInsertRowList will be NULL when this value is returned. Use damex_describeSelectQuery to get query details.
RETURN
int
DAM_SUCCESS - on successDAM_FAILURE - on failure

See also

*damex_describeCol
*damex_describeSelectQuery
*damex_describeTable
*damex_getFirstColInList
*damex_getFirstInsertRow
*damex_getFirstInsertValExp
*damex_getNextColInList
*damex_getNextInsertRow
*damex_getNextInsertValExp