CLASSES view

This Information Schema view displays a row for each class in the database.

See also:

CLASSES view, CLASS_INSTANCES view

Columns

Column NameData TypeDescription
NAMEVARCHARName of the instance.
SCHEMA_NAMEVARCHARName of the schema the instance belongs to.
DATABASE_NAMEVARCHARName of the database the instance belongs to.
VERSIONVARCHARVersion of the class that is currently active in this account.
OWNERVARCHARName of the role that owns the instance.
OWNER_ROLE_TYPEVARCHARThe internal/system-generated identifier of the role that owns the instance of the class.
IS_SERVICE_CLASSVARCHARTRUE if the class is a SERVICE class.
CREATEDTIMESTAMP_LTZDate and time when the instance was created.
COMMENTVARCHARComment for the instance.

Usage notes

The view only displays objects for which the current role for the session has been granted access privileges.

Examples

Retrieve all classes in the SNOWFLAKE database:

SELECT name, schema_name, database_name, version
    FROM SNOWFLAKE.INFORMATION_SCHEMA.CLASSES;