sql怎么授予对多张表的访问权限啊,格式怎样的,而且只能对表中的一行,就是用户自己资料的那一行访问

2025-03-10 00:36:32
推荐回答(1个)
回答1:

没办法动态对多张表授权,但可以一张一张添加热授权
比如:
创建帐号
grant select,update,instert on mydb.a on test@'localhost' identified by 'test';
添加另一张表授权
grant select,update,instert on mydb.b on test@'localhost' ;

不能只对一行做限制