如何将用户中的表拷贝到其他用户当中

select 'create table '||object_name||' as select * from '||OWNER||'.'||object_name||';' from all_objects  where owner='SCOTT'  and object_type='TABLE'      

create table qixin.EMP as select * from SCOTT.EMP;  

create table qixin.DEPT as select * from SCOTT.DEPT;  

create table qixin.BONUS as select * from SCOTT.BONUS;  

create table qixin.SALGRADE as select * from SCOTT.SALGRADE;

create table qixin.ORDERS as select * from SCOTT.ORDERS;  

create table qixin.STUDENT as select * from SCOTT.STUDENT;

posted @ 2011-11-29 22:49  齐心  Views(264)  Comments(0Edit  收藏  举报