O'Reilly logo

SQL in a Nutshell by Kevin Kline

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DROP ROLE

Synopsis

This command destroys a named set of user privileges in the current user database.

Vendor

Command

SQL Server

Not supported

MySQL

Not supported

Oracle

Supported, with variations

PostgreSQL

Not supported

SQL99 Syntax and Description

DROP ROLE role_name

The DROP ROLE command destroys the specified role. Only users who have WITH ADMIN OPTION may drop roles.

Oracle Syntax

DROP ROLE [owner_name.]role_name;

Executing the DROP ROLE command destroys the role in the current user database. It is no longer usable by any users or roles who previously had the role assigned to them.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required