A privilege type (
privilege ) identifies a certain privilege.Syntax
<privilege> ::= INSERT | UPDATE [(<column_name>,...)]
| SELECT [(<column_name>,...)] | SELUPD [(<column_name>,...)]
| DELETE | INDEX | ALTER | REFERENCES [(<column_name>,...)]
Explanation
Privilege |
Explanation |
INSERT |
Allows the identified user to insert rows in the specified table. The current user must be authorized to grant the INSERT privilege. |
UPDATE |
Allows the identified user to update rows in the specified table. If column names are specified, the rows may only be updated in the columns identified by these names. The current user must be authorized to grant the UPDATE privilege. |
SELECT |
Allows the identified user to select rows in the specified table. If column names are specified, the rows may only be selected in the columns identified by these names. The current user must be authorized to grant the SELECT privilege. |
SELUPD |
The SELECT and UPDATE privileges are granted. If column names are specified, the rows may only be selected or updated in the columns identified by these names. The current user must be authorized to grant both the SELECT and the UPDATE privileges. |
DELETE |
Allows the identified user to delete rows from the specified table. The current user must be authorized to grant the DELETE privilege. |
INDEX |
Allows the identified user to execute the CREATE INDEX and DROP INDEX statements for the specified tables. The INDEX privilege can only be granted for base tables. The current user must be authorized to grant the INDEX privilege. |
ALTER |
Allows the identified user to execute the ALTER TABLE statement for the specified tables. The ALTER privilege can only be granted for base tables. The current user must be authorized to grant the ALTER privilege. |
REFERENCES |
Allows the identified user to specify the table as a referenced table in a column_definition or referential_constraint_definition. |
SQL statement for granting or revoking privileges
GRANT statement REVOKE statement