mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-01 21:40:24 +00:00
Create dcl
This commit is contained in:
parent
93df127601
commit
18391f9690
9
sheets/_db2/dcl
Normal file
9
sheets/_db2/dcl
Normal 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
|
Loading…
Reference in New Issue
Block a user