Files
doris/docs/zh-CN/sql-reference/sql-statements/Account Management/DROP ROLE.md
Jiading Guo 318feb01f3 [improvement](account) support to account management sql (#8849)
Add [IF EXISTS] support to following statements:
- CREATE [IF NOT EXISTS] USER
- CREATE [IF NOT EXISTS] ROLE
- DROP [IF EXISTS] USER
- DROP [IF EXISTS] ROLE
2022-04-08 09:08:08 +08:00

1.2 KiB

title, language
title language
DROP ROLE zh-CN

DROP ROLE

description

该语句用户删除一个角色

语法:
    DROP ROLE [IF EXISTS] role1;

删除一个角色,不会影响之前属于该角色的用户的权限。仅相当于将该角色与用户解耦。用户已经从该角色中获取到的权限,不会改变。

example

1. 删除一个角色

    DROP ROLE role1;

keyword

DROP, ROLE