It is possible to grant select all columns in table except one for user? I tried to search any way to do this and read some docs, but can`t find solution
Asked
Active
Viewed 254 times
2 Answers
0
For example, you want to grant update privilege on ename column only, then give the following statement (where xyz is the username)
grant update (ename) on emp to xyz;
-
What if i want to grant update privilege to all columns except ename? – aurorame May 01 '22 at 23:36
0
You have to name all the other columns, which could be tedious if it is a large table.
GRANT SELECT(col1,...,col99)
ON table_name
TO user_name