I have a DB2 table with column “comments” that I would like to allow a user to have update access to, without giving them update access to the whole table.
I suspect that the answer will involve a view. However, in order to make the view relevant, won’t I need to expose the primary key to the view? Won’t the user then be able to update the primary key, as well as the “comments” column?
You can limit the scope of UPDATE access by specifying a list of columns.
Grant table, view, or nickname privileges statement