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_optionTRUE/FALSE。如果设置为 TRUE,则用户可以向其他角色或用户授予权限。

此变更调整 SHOW GRANTS TO ROLE 和 SHOW GRANTS TO USER 的输出,以支持基于用户的访问控制。

参考:1803