SHOW GRANTSHOW GRANT

显示会影响指定对象的所有权限(包括已继承、已拒绝和已授予的权限)。Displays all privileges (including inherited, denied, and granted) that affect the specified object.

语法Syntax

SHOW GRANT [user] ON [CATALOG | DATABASE <database-name> | TABLE <table-name> | VIEW <view-name> | FUNCTION <function-name> | ANONYMOUS FUNCTION | ANY FILE]

示例Example

SHOW GRANT `<user>@<domain-name>` ON DATABASE <database-name>