informix
Informix Guide to SQL: Syntax
SQL Statements

DROP ROLE

Use the DROP ROLE statement to remove a previously created role.

Syntax

Element Purpose Restrictions Syntax
role Name of the role to drop The role name must have been created with the CREATE ROLE statement. When a role name is enclosed in quotation marks, the role name is case sensitive. Identifier, p. 4-205

Usage

Either the DBA or a user to whom the role was granted with the WITH GRANT OPTION can issue the DROP ROLE statement.

After a role is dropped, the privileges associated with that role, such as table-level privileges or fragment-level privileges, are dropped, and a user cannot grant or enable a role. If a user is using the privileges of a role when the role is dropped, the user automatically loses those privileges.

The following statement drops the role engineer:

Related Information

Related statements: CREATE ROLE, GRANT, REVOKE, and SET ROLE

For a discussion of how to use roles, see the Informix Guide to SQL: Tutorial.


Informix Guide to SQL: Syntax, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved