doc-exports/docs/dli/sqlreference/dli_08_0148.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-03-27 22:02:33 +00:00

3.0 KiB

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;

Keywords

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;