개요

SQL

GRANT [PRIVILEGE] ON [DATABASE/SCHEMA/TABLE] TO [USER];

Privilege types

예시

-- DATABASE 권한 
GRANT CREATE ON DATABASE TEST_DB TO example_user; 
-- SCHEMA 권한 
GRANT USAGE ON SCHEMA TEST_SCHEMA TO example_user;
-- TABLE 권한 
GRANT SELECT ON ALL TABLES IN SCHEMA public TO example_user;