A privilege comprises a DML access type (, INSERT
, UPDATE
, , EXECUTE
and REFERENCES
), the name of a database object (table, view, procedure, role) and the name of the grantee (user, procedure, trigger, role). Various means are available to grant multiple types of access on an object to multiple users in a single statement. Privileges may be revoked from a user with REVOKE
statements.
Privileges are stored in the database to which they apply and are not applicable to any other database, except the DATABASE
DDL privileges, which are stored in the security database.
Administrators, the database owner or the object owner can grant privileges to and revoke them from other users, including privileges to grant privileges to other users. The process of granting and revoking SQL privileges is implemented with two statements, and REVOKE.