oracle中如何把结果集插入临时表中

比如临时表叫temp,你要查询的语句为select * from 表名 where id=1。

1.建表temp

2.插入语句:

1 insert into temp select * from 表名 where id=1;
2 commit;

 

 
posted @ 2016-08-23 18:04  舒山  阅读(7981)  评论(0编辑  收藏  举报