2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/_db2/dcl
Andres Gomez Casanova b87e883de5
Update dcl
2019-08-05 22:51:35 -05:00

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