statement
REVOKE
Removes a direct privilege grant. Access may remain through other grants or role membership. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.
Formal Syntax & Structure
sql syntaxsql
REVOKE SELECT ON TABLE table FROM roleWorking Example
Example Snippetsql
CREATE ROLE lab_reader; GRANT SELECT ON TABLE customers TO lab_reader;REVOKE SELECT ON TABLE customers FROM lab_reader;