DESCRIBE SNAPSHOT SET

Describes a specific snapshot set.

DESCRIBE 可以缩写为 DESC。

另请参阅:

CREATE SNAPSHOT SET, ALTER SNAPSHOT SET, DROP SNAPSHOT SET, SHOW SNAPSHOT SETS

语法

DESC[RIBE] SNAPSHOT SET <name>
Copy

参数

name

Specifies the identifier for the snapshot set to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

使用说明

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is type, then specify "type" for the identifier.

输出

描述

created_on

Timestamp that the snapshot set was created.

name

Name of the snapshot set.

database_name

Name of the database that contains the snapshot set.

schema_name

Name of the schema that contains the snapshot set.

object_kind

Type of the object that the snapshot set is snapshotting.

object_name

Name of the object that the snapshot set is snapshotting.

object_database_name

Name of the database that contains the object being snapshotted by this snapshot set.

object_schema_name

Name of the schema that contains the object being snapshotted by this snapshot set.

snapshot_policy_name

Name of the snapshot policy attached to this snapshot set.

snapshot_policy_database_name

Name of the database that contains the snapshot policy.

snapshot_policy_schema_name

Name of the schema that contains the snapshot policy.

comment

Comment for snapshot set.

owner

Name of the role with the OWNERSHIP privilege on the snapshot set.

owner_role_type

Type of role with the OWNERSHIP privilege on the snapshot set.

示例

Describe a snapshot set:

DESC SNAPSHOT SET my_snapshot_set;
Copy
语言: 中文