next up previous
Next: APPLICATION PROGRAMMING Up: ADDITIONAL FEATURES OF SQL Previous: Catalog

Security and Sharing

Three levels of database privileges:

Table-level privileges:

GRANT [select|insert|delete|update(col-names)] 
ON table_name
TO [user|PUBLIC];

REVOKE [select|insert|delete|update(col-names)|ALL] 
ON table_name
FROM [user|PUBLIC];

Examples:

grant select on customers to public;
grant insert on orders to jones;
grant update(quantity) on products to jones,smith;

revoke all on customers from jones;



Raj Sunderraman
Tue Apr 1 16:15:10 PST 1997