Reputation: 199
I allowed user to input SQL statement in the system
But there are some data that i want to hide from user
Is there any way that i can disable INSERT
or SELECT
or UPDATE
or DELETE
statement on selected TABLE
?
Upvotes: 1
Views: 737
Reputation: 36
Use:
REVOKE privileges ON object FROM user;
For example:
REVOKE ALL ON employees FROM anderson;
REVOKE INSERT ON employees FROM anderson;
Upvotes: 2