Skip to content

COLUMNS view

This Information Schema view displays a row for each column in the tables and views defined in the meta database of your selected project.

See also

Columns

ColumnData TypeDescription
IDintegerThe unique ID of the column
TABLE_FOLDERstringThe folder path to the table
TABLE_NAMEstringThe name of the table or view to which this columns belongs
COLUMN_NAMEstringThe name of the column
ORDINAL_POSITIONintegerThe position of the column within the set of columns
DATA_TYPEstringThe data type of this column
CREATEDtimestampThe time of creation of this column
DESCRIPTIONstringThe column description

Examples

The following query retrieves all columns of all tables/views in the current project.

sql
SELECT * FROM @INFORMATION_SCHEMA.COLUMNS;
txt
+-----+--------------+-----------------+-------------+------------------+-----------+---------------------+-------------+
| ID  | TABLE_FOLDER | TABLE_NAME      | COLUMN_NAME | ORDINAL_POSITION | DATA_TYPE | CREATED             | DESCRIPTION |
+-----+--------------+-----------------+-------------+------------------+-----------+---------------------+-------------+
| 311 | /my_scope    | MKW_VAULT_SCOPE | SCOPE       | 0                | string    | 2023-08-25 17:11:46 |             |
| 313 | /my_scope    | MKW_VAULT_SCOPE | SRC_OBJECT  | 1                | string    | 2023-08-25 17:11:46 |             |
| 314 | /my_scope    | MKW_VAULT_SCOPE | ENTITY_NAME | 2                | string    | 2023-08-25 17:18:27 |             |
| 316 | /my_scope    | MKW_VAULT_SCOPE | OBJECT_TYPE | 3                | string    | 2023-08-25 19:23:35 |             |
| 394 | /md_prep     | MKW_KEYS        | KEY_TYPE    | 1                | string    | 2023-08-26 13:31:37 |             |
| 401 | /md_prep     | MKW_KEYS        | FIELD_NAME  | 2                | string    | 2023-08-26 13:31:37 |             |
+-----+--------------+-----------------+-------------+------------------+-----------+---------------------+-------------+