How to “subtract” privileges in MySQL

后端 未结 4 951
暖寄归人
暖寄归人 2020-12-19 10:20

I want to revoke update privielges from 2 columns of table \"transact\". I want the user to have all access to all other tables and data.

mysql> REVOKE UP         


        
4条回答
  •  春和景丽
    2020-12-19 11:15

    Firstly - remove all privileges (on database, table, column levels).

    1. Grant UPDATE (...and other) privileges to EACH table, except 'transact'.
    2. Grant UPDATE privilege to specified fields in table 'transact'.

提交回复
热议问题