DROP USER

DROP USER — remove a database role

Synopsis

DROP USER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

Description

DROP USER is simply an alternate spelling of DROP ROLE.

Parameters

CASCADE

Used to DROP USER statement compatible with Oracle. Automatically drop objects (tables, functions, etc.) that are contained in the user, and in turn all objects that depend on those objects (see Section 6.14). It must be used in Oracle database.

RESTRICT

Used to DROP USER statement compatible with Oracle. Refuse to drop the user if it contains any objects. This is the default. It must be used in Oracle database.

Compatibility

The DROP USER statement is a LightDB extension. The SQL standard leaves the definition of users to the implementation.

See Also

DROP ROLE