2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-03 15:40:17 +00:00
cheat.sheets/sheets/_db2/dcl

10 lines
317 B
Plaintext
Raw Normal View History

2019-01-07 16:56:13 +00:00
--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