1、授权
案例1:用户a给用户b授予某张表的增删查改权限。
grant 权限 on userA.the_table to userB;
grant select, insert, update, delete (the_column) on the_table to userB; 增删查改权限
grant all (the_column) on the_table to userB;所有权限(包含新增删除修改表结构和字段)
例子:
grant select on jemondata.houjt_cn2_temp to rsmsreader;
grant all on jemondata.houjt_cn2_temp to rsmsreader;
grant select, insert, update, delete on jemondata.liujingwen626_cn2_formInfo to rsmsreader;
grant all on jemondata.liujingwen626_cn2_formInfo to rsmsreader;
用户rsmsreader使用上面的表时,还是需要带上 jemondata前缀;
select * from jemondata.houjt_cn2_temp
select * from jemondata.liujingwen626_cn2_formInfo for update
delete from jemondata.liujingwen626_cn2_formInfo
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。