Examples of GRANT EXECUTE
•
The SPJ owner grants EXECUTE and WITH GRANT OPTION privileges on the
ADJUSTSALARY procedure to the role 'ROLE.HR':
GRANT EXECUTE
ON PROCEDURE persnl.adjustsalary
TO 'ROLE.HR'
WITH GRANT OPTION;
•
The role 'ROLE.HR' grants EXECUTE privilege on the ADJUSTSALARY procedure to other
roles:
GRANT EXECUTE
ON PROCEDURE persnl.adjustsalary
TO 'ROLE.PAYROLL', 'ROLE.FINANCE';
•
The SPJ owner grants EXECUTE privilege on the TOTALPRICE procedure to all roles:
GRANT EXECUTE
ON sales.totalprice
TO PUBLIC;
118
SQL Statements