REVOKE
The Syntax for the REVOKE command is
REVOKE privilege_name
ON object_name
FROM {user_name PUBLIC role_name}
For Eample:
REVOKE SELECT ON employee FROM user1;This commmand will REVOKE a SELECT privilege on employee table from user1.When you REVOKE SELECT privilege on a table from a user, the user will not be able to SELECT data from that table anymore. However, if the user has received SELECT privileges on that table from more than one users, he/she can SELECT from that table until everyone who granted the permission revokes it. You cannot REVOKE privileges if they were not initially granted by you.
No comments:
Post a Comment