KI_COLUMNS
Argument | Enumeration | Purpose |
---|---|---|
hFetch | Handle | |
sTable$ | Name of table to be described | |
hTable | Optional handle of open table (used if table name is blank) | |
status | KDB_ERROR_ENUM | Return status |
KI_COLUMNS
This function is used to set up a virtual result set enumerating the columns for a specified table. The handle must have been allocated with a KI_ALLOC_HANDLE and it can be used in subsequent KI_FETCH calls to get the information. The row used in the fetch should be an instance of a _KDB_COLUMN record containing fields for such things as the column name, offset in the row and datatype.
If the table is already open on another handle it can be more efficient to reference the table using that handle rather than using the name which opens the table on a temporary handle. To do this leave the table name sTable$ blank and pass the handle as the optional third argument hTable. This argument is only used if the table name is blank.
You can get information about a specific column using KI_DESCRIBE_COL.