This statement is used to display all roles or roles bound to the user_name in the current database.
1 | SHOW [ALL] ROLES [user_name]; |
ALL: Displays all roles.
Keywords ALL and user_name cannot coexist.
1 | SHOW ROLES; |
1 | SHOW ALL ROLES; |
Only the administrator has the permission to run the show all roles statement.
1 | SHOW ROLES user_name1; |