COLUMNS view

This Information Schema view displays a row for each column in the tables defined in the specified (or current) database.

See also:

DATABASES view

Columns

ColumnData TypeDescription
TABLE_CATALOGTEXTDatabase that the table belongs to.
TABLE_SCHEMATEXTSchema that the table belongs to.
TABLE_NAMETEXTTable or view that the column belongs to.
COLUMN_NAMETEXTName of the column.
ORDINAL_POSITIONNUMBEROrdinal position of the column in the table.
COLUMN_DEFAULTTEXTDefault value of the column.
IS_NULLABLETEXT‘YES’ if the column may contain NULL, ‘NO’ otherwise.
DATA_TYPETEXT

Data type of the column.

This column shows the standard Snowflake data type of the column. The DATA_TYPE_ALIAS column displays the original data type name that was specified for the column when the table was created, or when the column was altered.

CHARACTER_MAXIMUM_LENGTHNUMBERMaximum length in characters of string columns.
CHARACTER_OCTET_LENGTHNUMBERMaximum length in bytes of string columns.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric columns.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric columns.
NUMERIC_SCALENUMBERScale of numeric columns.
DATETIME_PRECISIONNUMBERNot applicable for Snowflake.
INTERVAL_TYPETEXTNot applicable for Snowflake.
INTERVAL_PRECISIONNUMBERNot applicable for Snowflake.
CHARACTER_SET_CATALOGTEXTNot applicable for Snowflake.
CHARACTER_SET_SCHEMATEXTNot applicable for Snowflake.
CHARACTER_SET_NAMETEXTNot applicable for Snowflake.
COLLATION_CATALOGTEXTNot applicable for Snowflake.
COLLATION_SCHEMATEXTNot applicable for Snowflake.
COLLATION_NAMETEXTNot applicable for Snowflake.
DOMAIN_CATALOGTEXTNot applicable for Snowflake.
DOMAIN_SCHEMATEXTNot applicable for Snowflake.
DOMAIN_NAMETEXTNot applicable for Snowflake.
UDT_CATALOGTEXTNot applicable for Snowflake.
UDT_SCHEMATEXTNot applicable for Snowflake.
UDT_NAMETEXTNot applicable for Snowflake.
SCOPE_CATALOGTEXTNot applicable for Snowflake.
SCOPE_SCHEMATEXTNot applicable for Snowflake.
SCOPE_NAMETEXTNot applicable for Snowflake.
MAXIMUM_CARDINALITYNUMBERNot applicable for Snowflake.
DTD_IDENTIFIERTEXTNot applicable for Snowflake.
IS_SELF_REFERENCINGTEXTNot applicable for Snowflake.
IS_IDENTITYTEXTWhether this column is an identity column.
IDENTITY_GENERATIONTEXTWhether an identity column’s value is always generated or only generated by default. Snowflake only supports BY DEFAULT.
IDENTITY_STARTTEXTThe START value from CREATE TABLE ... (columnX ... AUTOINCREMENT START <#> ...).
IDENTITY_INCREMENTTEXTThe INCREMENT value from CREATE TABLE ... (columnX ... AUTOINCREMENT INCREMENT <#> ...).
IDENTITY_MAXIMUMTEXTNot applicable for Snowflake.
IDENTITY_MINIMUMTEXTNot applicable for Snowflake.
IDENTITY_CYCLETEXTWhether the value of an identity column may cycle. Snowflake only supports NO CYCLE.
IDENTITY_ORDEREDTEXTIf YES, the column is an identity column and has the ORDER property. If NO, the column is an identity column and has the NOORDER property.
SCHEMA_EVOLUTION_RECORDTEXT

Records information about the latest triggered Schema Evolution for a given table column. This column contains the following subfields:

  • EvolutionType: The type of the triggered schema evolution (ADD_COLUMN or DROP_NOT_NULL).
  • EvolutionMode: The triggering ingestion mechanism (COPY, SNOWPIPE, or SNOWPIPE_STREAMING).
  • FileName: The file name that triggered the evolution (NULL for SNOWPIPE_STREAMING).
  • TriggeringTime: The approximate time when the column was evolved.
  • QueryId or PipeId: A unique identifier of the triggering query or pipe (QUERY ID for COPY, PIPE ID for SNOWPIPE, or NULL for SNOWPIPE_STREAMING).
  • Pipe name: Fully qualified pipe name that triggered schema evolution (SNOWPIPE_STREAMING only).
  • Channel name: Channel that triggered schema evolution (SNOWPIPE_STREAMING only).
  • offsetTokenUpperBound: An offset at or before which schema evolution was triggered (SNOWPIPE_STREAMING only).
COMMENTTEXTComment for this column.
DATA_TYPE_ALIASTEXT

The data type alias or synonym specified for the column when the table was created or when the column was last altered.

For example, the BIGINT type is synonymous with the NUMBER type. If BIGINT was specified as the type for a column, then BIGINT is displayed in this DATA_TYPE_ALIAS column.

For columns in tables that were created before the 2025_07 behavior change bundle was enabled, and not altered after the behavior change, the value in this column is NULL. For more information, see COLUMNS view (multiple schemas): New column.

Usage notes

  • The view only displays objects for which the current role for the session has been granted access privileges. The view does not honor the MANAGE GRANTS privilege and consequently may show less information compared to a SHOW command when both are executed by a user who holds the MANAGE GRANTS privilege.

Examples

Retrieve all columns in the myTable table defined in the mydb database:

USE DATABASE mydb;
SELECT *
    FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'myTable';