oracle语句表数据从一张表导入另一个表

类似与sql server 的语句,从一个表中取得一些数据导入到另一个新表或者已经存在的表

sql server :

select [column1, column2, ...] into new_table from old_table ; -- 加入到新表中

insert into end_table[column1, column2, ...] select [column1, column2, ...] from old_table; -- 加入到已经存在的表中,可以是某几列,或者所有的列

oracle:

create table new_table as
select * from old_table;

insert into end_table select * from old_table;

猜你喜欢

转载自piaoniu.iteye.com/blog/1336093