首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

把某用户可操作全部表的权限赋予给新用户的命令

2012-09-29 
把某用户可操作所有表的权限赋予给新用户的命令select grant select on ||table_name || to test2 f

把某用户可操作所有表的权限赋予给新用户的命令

select 'grant select on '||table_name ||' to test2 ;' from all_tables where owner='TEST1'??;
用此命令生成批量处理语句,然后直接执行

热点排行