DROP USER

2024-06-28 05:30:31  Updated

Purpose

You can use this statement to drop an OceanBase Database user.

Note

  • You must have the CREATE USER system privilege to use the DROP USER statement.
  • CASCADE indicates dropping all objects such as privileges, databases, and tables owned by the user before dropping the user.

Syntax

DROP USER user_name CASCADE;

Parameters

Parameter Description
user_name The username. You can drop a single user at a time.

Examples

Drop the user named user1.

obclient> DROP USER user1 CASCADE;
Query OK, 0 rows affected

Contact Us