I am learning the SQL syntax for Oracle and am confronted with both the ADMIN parameter and the GRANT parameter to give users the ability to grant privileges. For example, if I want to grant SELECT privileges to SCOTT in the HR HRPLESYES table and give the opportunity to grant this access to someone else, I could do
GRANT SELECT ON HR.EMPLOYEES TO SCOTT WITH ADMIN OPTION
or
GRANT SELECT ON HR.EMPLOYEES TO SCOTT WITH GRANT OPTION.
It seems either it should work. Does anyone know what the difference is?
source
share