Updated on 2026-11-06 GMT+08:00
Show Roles
Function
Displays all roles or display the roles bound to a specified user_name in the current database.
Syntax
SHOW [ALL] ROLES [user_name];
Parameters
ALL: Displays all roles.
Precautions
The ALL keyword and user_name cannot be used simultaneously.
Examples
- Display all roles under the project.
SHOW ALL ROLES;
Only administrators have permission to execute the SHOW ALL ROLES statement.
- Display all roles bound to the user named user_name1.
SHOW ROLES user_name1;
Parent topic: Data Permissions
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot