sys用户查询ww用户创建的表(已经commited)
代码语言:javascript复制select * from ww.wwTable;
普通用户lisi查询ww用户的表
代码语言:javascript复制grant select on wwTable to lisi;
代码语言:javascript复制select * from ww.wwTable;
对象授权操作
代码语言:javascript复制grant insert on wwTable to lisi;
grant all on wwTable to lisi;
撤销授权操作
代码语言:javascript复制revoke all on wwTable from wwTable;
将表中某些列权限授予用户(只有更新和插入)
代码语言:javascript复制grant update(name) on wwTable to lisi;
代码语言:javascript复制grant insert(id) on wwTable to lisi;
测试: update ww.wwTable set name = 'sss' where id = 5;
查询列权限
代码语言:javascript复制select 8 from user_con_privs;