mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
10 lines
279 B
Plaintext
10 lines
279 B
Plaintext
--Grant on a table
|
|
GRANT SELECT, INSERT ON TABLE tbl1 TO user
|
|
|
|
--Grant execution on a stored procedure
|
|
GRANT EXECUTE ON PROCEDURE prc1(INT, DATE) TO USER jdoe
|
|
GRANT EXECUTE ON SPECIFIC PROCEDURE mypr TO GROUP admins
|
|
|
|
--Revoke on a table
|
|
REVOKE DELETE ON TABLE mytable FROM recur
|