mysql GRANT + WHERE

前端 未结 3 536
刺人心
刺人心 2020-12-11 06:09

I want to give permissions only to specificated rows in mysql. table: messages cols: from, to, message

GRANT ALL ON db.messages TO \'jeffrey\'@\'localhost\' WH

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 06:55

    MySQL doesn't have row-level permissions. You have database, table, and column. not rows. For row-level, use a view and/or approriate where clauses.

提交回复
热议问题