2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-01 21:40:24 +00:00

Create dcl

This commit is contained in:
Andres Gomez Casanova 2019-01-07 11:56:13 -05:00 committed by GitHub
parent 93df127601
commit 18391f9690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
sheets/_db2/dcl Normal file
View File

@ -0,0 +1,9 @@
--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