role-grants
#system.role_grants {#system_tables-role_grants}
包含用户和角色的角色授予. 向该表添加项, 请使用GRANT role TO user.
列信息:
- granted_role_name(String) — 授予- role_name角色的角色名称. 要将一个角色授予另一个角色, 请使用- GRANT role1 TO role2.
- granted_role_is_default(UInt8) — 显示- granted_role是否为默认角色的标志. 参考值:- 1 — granted_roleis a default role.
- 0 — granted_roleis not a default role.
 
- 1 — 
- with_admin_option(UInt8) — 显示- granted_role是否是具有 ADMIN OPTION 特权的角色的标志. 参考值:- 1 — 该角色具有 ADMIN OPTION权限.
- 0 — 该角色不具有  ADMIN OPTION权限.
 
- 1 — 该角色具有