SCHEMATA view

This Information Schema view displays a row for each schema in the specified (or current) database, including the INFORMATION_SCHEMA schema itself.

Columns

Column NameData TypeDescription
CATALOG_NAMEVARCHARDatabase that the schema belongs to
SCHEMA_NAMEVARCHARName of the schema
SCHEMA_OWNERVARCHARName of the role that owns the schema
IS_TRANSIENTVARCHARWhether this is a transient schema
IS_MANAGED_ACCESSVARCHARWhether the schema is a managed access schema
RETENTION_TIMENUMBERNumber of days that historical data is retained for Time Travel
DEFAULT_CHARACTER_SET_CATALOGVARCHARNot applicable for Snowflake.
DEFAULT_CHARACTER_SET_SCHEMAVARCHARNot applicable for Snowflake.
DEFAULT_CHARACTER_SET_NAMEVARCHARNot applicable for Snowflake.
SQL_PATHVARCHARNot applicable for Snowflake.
CREATEDTIMESTAMP_LTZCreation time of the schema
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
COMMENTVARCHARComment for this schema

Usage notes

  • The view only displays objects for which the current role for the session has been granted access privileges.
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.