TABLE_PRIVILEGES 视图

此 Information Schema 视图为已授予指定(或当前)数据库中每个角色的每个表权限显示一行。

For more information about roles and privileges, see Overview of Access Control.

See also:

APPLICABLE_ROLES view , ENABLED_ROLES view , OBJECT_PRIVILEGES view

Column NameData TypeDescription
GRANTORVARCHARRole who granted the table privilege
GRANTEEVARCHARRole to whom the table privilege is granted
GRANTED_TOVARCHARType of object that has been granted the privilege
TABLE_CATALOGVARCHARDatabase containing the table on which the privilege is granted
TABLE_SCHEMAVARCHARSchema containing the table on which the privilege is granted
TABLE_NAMEVARCHARName of the table on which the privilege is granted
PRIVILEGE_TYPEVARCHARType of the granted privilege
IS_GRANTABLEVARCHARWhether the privilege was granted WITH GRANT OPTION
WITH_HIERARCHYVARCHARNot applicable for Snowflake.
CREATEDTIMESTAMP_LTZCreation time of the privilege

使用说明

  • 该视图仅显示会话的当前角色已被授予访问权限的对象。
  • The PRIVILEGE_TYPE column contains Snowflake privilege types. For example, the owner of a table has the OWNERSHIP privilege, rather than each of the separate privileges (e.g. SELECT, INSERT, DELETE, UPDATE).