개요

SQL

REVOKE [PRIVILEGE] ON [DATABASE/SCHEMA/TABLE] FROM [USER];

Privilege types

Database Schema Table View
• all privileges
• create
• connect
• temp/temporary • all privileges
• create
• usage • all privileges
• select
• insert
• update
• delete
• references
• trigger
• truncate • all privileges
• select
• insert
• update
• delete
• references
• trigger
• truncate

예시

-- DATABASE 권한 
REVOKE CREATE ON DATABASE TEST_DB FROM example_user; 
-- SCHEMA 권한 
REVOKE USAGE ON SCHEMA TEST_SCHEMA FROM example_user;