DROP ROLE

Overview

In 23.09, 6.1:

Deletes a role.

In 6.1:

Deletes a role.

In 6.0, 5.3:

Not present

USAGE

Common Syntax:

DROP ROLE [IF EXISTS] <role_name> [, <role_name>] ...

DETAILS

The DROP ROLE statement irreversibly deletes the role. If any users are granted the role, the grant will be revoked.

For Xpand, all objects are case-insensitive.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

DROP ROLE

To delete a role:

DROP ROLE role1;

IF EXISTS

By default, if you try to delete a role that does not exist, an error is raised.

To prevent an error when the specified role is not present, add the IF EXISTS clause:

DROP ROLE IF EXISTS role1;

If the specified role exists, it will be deleted. If the specified role does not exist, the query does not raise an error.

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Added in MariaDB Xpand 6.1.0.

6.0

  • Not present.

5.3

  • Not present.

Release Series

History

6.0

  • Not present.

5.3

  • Not present.

Release Series

History

6.1

  • Added in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES