SQL GRANT, : ALL PRIVILEGES ( ) ALL PUBLIC (). ALL GRANT, . , Diane Stephen :
GRANT ALL ON Customers TO Stephen;
( UPDATE REFERENCES .)
PUBLIC (catch-all), .
PUBLIC, . , SELECT , . , , , :
GRANT SELECT ON Orders TO PUBLIC;
, , . , SELECT, (, REFERENCES, ) . .
, , , , .
PUBLIC . , , , , , , , , SELECT .
WITH GRANT OPTION
, . , ( ) , , . SQL WITH GRANT OPTION.
Diane , Adrian SELECT , SELECT WITH GRANT OPTION:
GRANT SELECT ON Customers TO Adrian
WITH GRANT OPTION;
Adrian SELECT .
GRANT SELECT ON Diane.Customers TO Stephen;
GRANT SELECT ON Diane.Customers TO Stephen
WITH GRANT OPTION;
GRANT OPTION , , , , GRANT OPTION, . ; ( , , ID , ; ). GRANT OPTION .
|
|
ANSI CREATE TABLE, , DROP TABLE , GRANT , , . REVOKE, .
REVOKE GRANT, . INSERT Adrian ,
REVOKE INSERT ON Orders FROM Adrian;
, GRANT, :
REVOKE INSERT, DELETE ON Customers
FROM Adrian, Stephen;
, . ? ? , , ? , , :
, , , , .