2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/_db2/dcl
Andres Gomez Casanova 18391f9690
Create dcl
2019-01-07 11:56:13 -05:00

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