Simple SELECT processing
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
The processing of SELECT queries to read data and process in a single call to IP EXECUTE is done as follows:
- Determine the criteria to use for building rows. To decide how to get information from the query that can be used to reduce the number of rows processed, see Optimization.
- Build a row with the required columns. Call
dam_allocRowto allocate a row and then usedam_addValToRowto add values for the columns. Here you may select to build a row with all columns as defined in the schema or to build only the required ones. Use the functiondam_getFirstColand the associateddam_getNextColto select columns that appear in the various parts of the query. At minimum, you should add values for columns that appear either in the SELECT part of the query or in the WHERE condition of the query. Find these by calling:dam_getFirstCol(DAM_COL_IN_USE) - Evaluate against the expression. Call
dam_isTargetRowto evaluate the row against the where condition. - Add the row to the result set if it evaluates true. If not, free it. Call
dam_addRowToTableto add the row. Calldam_freeRowto free it. - Repeat from Step 2 until all candidate rows are read from the database and processed.