Help Center/
Data Lake Insight/
SQL Syntax Reference (To Be Offline)/
Spark SQL Syntax Reference (Unavailable Soon)/
Data Permissions Management/
Deleting a Role
Updated on 2023-11-03 GMT+08:00
Deleting a Role
Function
This statement is used to delete a role in the current database or a specified database.
Syntax
1 |
DROP ROLE [db_name].role_name;
|
Keyword
None
Precautions
- The role_name to be deleted must exist in the current database or the specified database. Otherwise, an error will be reported.
- If db_name is not specified, the role is deleted in the current database.
Example
1 |
DROP ROLE role1;
|
Parent topic: Data Permissions Management
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.