Problem Statement
What do GRANT and REVOKE do?
Explanation
GRANT gives a principal rights on objects (tables, views, procedures). REVOKE removes those rights. Grant to roles, then attach users to roles for clean, auditable access.
Code Solution
SolutionRead Only
GRANT SELECT, INSERT ON orders TO app_writer; REVOKE INSERT ON orders FROM app_writer;
Practice Sets
This question appears in the following practice sets:
