SHOW GRANTS TO USER 和 SHOW GRANTS 命令:输出中的新列¶
Attention
This behavior change is in the 2025_01 bundle.
For the current status of the bundle, refer to Bundle History.
SHOW GRANTS TO USER(和 SHOW GRANTS)的行为如下:
- Before the change:
SHOW GRANTS TO USER(和 SHOW GRANTS)有以下列:
- created_on
- role
- granted_to
- grantee_name
- granted_by
- After the change:
SHOW GRANTS TO USER(和 SHOW GRANTS)有以下列:
- created_on
- 权限
- granted_on
- name
- role
- granted_to
- grantee_name
- grant_option
- granted_by
启用此行为变更捆绑包后,SHOW GRANTS TO USER 和 SHOW GRANTS 命令的输出包括以下新列:
| 列名称 | 描述 |
|---|---|
| 权限 | 授予的权限的名称。 |
| granted_on | 授予权限的对象类型,如 TABLE 或 DATABASE。 |
| name | 权限授予涉及的对象的名称。 |
| grant_option | TRUE/FALSE。如果设置为 TRUE,则用户可以向其他角色或用户授予权限。 |
此变更调整 SHOW GRANTS TO ROLE 和 SHOW GRANTS TO USER 的输出,以支持基于用户的访问控制。
参考:1803