mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-03 15:40:17 +00:00
10 lines
317 B
Plaintext
10 lines
317 B
Plaintext
|
--Grant on a table
|
||
|
GRANT SELECT, INSERT ON TABLE mytable TO GROUP recur
|
||
|
|
||
|
--Grant execution on a stored procedure
|
||
|
GRANT EXECUTE ON PROCEDURE myproc(SMALLINT, VARCHAR(16)) TO USER jdoe
|
||
|
GRANT EXECUTE ON SPECIFIC PROCEDURE myproc1 TO USER jdoe
|
||
|
|
||
|
--Revoke on a table
|
||
|
REVOKE UPDATE, DELETE ON TABLE mytable FROM GROUP recur
|