OBJECT_PRIVILEGES 视图

This Information Schema view displays a row for each access privilege granted for all objects defined in your account. It includes the privileges displayed in the TABLE_PRIVILEGES view and USAGE_PRIVILEGES view.

For more information about privileges and their impact on object access, see Overview of Access Control.

See also:

APPLICABLE_ROLES view , ENABLED_ROLES view , TABLE_PRIVILEGES view

Column NameData TypeDescription
GRANTORVARCHARRole who granted the privilege
GRANTEEVARCHARRole to whom the privilege is granted
GRANTED_TOVARCHARType of object that has been granted the privilege
OBJECT_CATALOGVARCHARDatabase containing the object on which the privilege is granted
OBJECT_SCHEMAVARCHARSchema containing the object on which the privilege is granted
OBJECT_NAMEVARCHARName of the object on which the privilege is granted
OBJECT_TYPEVARCHARType of the object on which the privilege is granted
PRIVILEGE_TYPEVARCHARType of the granted privilege
IS_GRANTABLEVARCHARWhether the privilege was granted WITH GRANT OPTION
CREATEDTIMESTAMP_LTZCreation time of the privilege

使用说明

  • 该视图仅显示会话的当前角色已被授予访问权限的对象。