Updated on 2026-11-06 GMT+08:00

Unbind Role

Function

Cancels the binding between a user and a role.

Syntax

REVOKE (role_name,...) FROM (user_name,...);

Keywords

None.

Precautions

The role_name and user_name must exist, and the user_name must be bound to the role_name.

Example

Cancel the binding between user user_name1 and role role1.

REVOKE role1 FROM user_name1;