GRANT and REVOKE
suggest changeSyntax
- GRANT [privilege1] [, [privilege2] … ] ON [table] TO [grantee1] [, [grantee2] … ] [ WITH GRANT OPTION ]
- REVOKE [privilege1] [, [privilege2] … ] ON [table] FROM [grantee1] [, [grantee2] … ]
Remarks
GRANT gives permissions to users. If WITH GRANT OPTION is specified, the grantee can grant that same privilege to others. REVOKE removes a privilege. Whether revoking a grant also revokes privileges that user passed on depends on the dialect.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents