16 lines
688 B
MySQL
16 lines
688 B
MySQL
|
GRANT INSERT, DELETE ON t TO u;
|
||
|
GRANT UPDATE ON t TO u;
|
||
|
GRANT SELECT ON t TO ROLE PUBLIC WITH GRANT OPTION;
|
||
|
GRANT ALL PRIVILEGES ON TABLE t TO USER u;
|
||
|
GRANT DELETE ON "t" TO ROLE "public" WITH GRANT OPTION;
|
||
|
GRANT SELECT ON SCHEMA s TO USER u;
|
||
|
-- GRANT role
|
||
|
GRANT role1 TO user1;
|
||
|
GRANT role1, role2, role3 TO user1, USER user2, ROLE role4 WITH ADMIN OPTION;
|
||
|
GRANT role1 TO user1 WITH ADMIN OPTION GRANTED BY admin;
|
||
|
GRANT role1 TO USER user1 WITH ADMIN OPTION GRANTED BY USER admin;
|
||
|
GRANT role1 TO ROLE role2 WITH ADMIN OPTION GRANTED BY ROLE admin;
|
||
|
GRANT role1 TO ROLE role2 GRANTED BY ROLE admin;
|
||
|
GRANT "role1" TO ROLE "role2" GRANTED BY ROLE "admin";
|
||
|
GRANT role1 TO user1 IN my_catalog;
|