Explicit table and view privileges
You can explicitly grant privileges on tables and views.
Db2 supports the following table and view privileges:
| Table or view privilege | SQL statements allowed for a named table or view |
|---|---|
| ALTER | ALTER TABLE, to change the table definition |
| DELETE | DELETE, to delete rows |
| INDEX | CREATE INDEX, to create an index on the table |
| INSERT | INSERT, to insert rows |
| REFERENCES | ALTER or CREATE TABLE, to add or remove a referential constraint that refers to the named table or to a list of columns in the table |
| SELECT | SELECT, to retrieve data |
| TRIGGER | CREATE TRIGGER, to define a trigger on a table |
| UPDATE | UPDATE, to update all columns or a specific list of columns |
| GRANT ALL | SQL statements of all privileges |
Db2 supports the following table privileges:
| Table privilege | Operations allowed for a named table |
|---|---|
| UNLOAD | UNLOAD utility, to unload data |