KI_FETCH
Argument | Enumeration | Purpose |
---|---|---|
handle | Handle | |
SYM(rowbuf$) | Symbol of a buffer large enough to result | |
status | KDB_ERROR_ENUM | Return status |
KI_FETCH
This function returns the next row from a result set established on the handle by KI_EXECUTE, KI_DATABASES, KI_TABLESPACES, KI_TABLES, KI_PARTITIONS, KI_COLUMNS or KI_SESSIONS. The data is put into the buffer whose SYM() is passed in sym. This buffer must be large enough.
Note: A KI_PREPARE/KI_EXECUTE/KI_FETCH block MUST be followed by a KI_CLOSE before the handle can be re-used to parse another SQL statement or open a table.