创建表结构相同的表,表结构相同的表之间复制数据,Oracle 中 insert into XXX select from 的用法

/**1. 用select 创建相同表结构的表*/
create table test_tbl2 as select * from test_tbl1 where 1<>1;


/**
  2. 用insert into .. select 插入
*/
insert into test_tbl2(id,name,salary) select id,name,salary from test_tbl1 where id<6;

posted @ 2013-09-28 13:50  jmStatham  阅读(1163)  评论(0编辑  收藏  举报