DESCRIBE RELATION
Last updated
Last updated
This command provides the runtime information of an existing in a . You can also use this command to inspect a specific relation type. See for a list of available relations to describe.
You can use this command to inspect an existing relation. The output of this command also provides any errors that may have prevented the relation and its underlying entity to be created in the namespace.
Relations are visible only if the current role has USAGE
privileges on the database and schema and SELECT
or INSERT
privilege on the relation.
See also DESCRIBE RELATION COLUMNS.
This is the name of the relation to describe. If the name is case-sensitive, you must wrap it in double quotes; otherwise, the lowercase name is used.
The relation name optionally can be fully qualified in the format <database_name>.<schema_name>.<relation_name>
or <schema_name>.<relation_name>
. If the database name or schema name are not provided, then the system uses the current session's database/schema (see ).
The following describes the pageviews
relation in the current demodb
database and public
schema:
The following describes the pageviews
relation in the demodb
database and public
schema, using its fully-qualified relation name:
The following describes the users_log
in the demodb
database and public
schema, using its fully-qualified relation name:
The following describes the total_views
in the demodb
database and analytics
schema, using its fully-qualified relation name:
The following describes the dbx_pv
in the current database and schema that failed:
The following describes the Pageviews
relation in the current demodb
database and public
schema: