Oracle select into from 和 insert into select

select into from

 

SQLSERVER  创建表:

select * into aaa from bbb

 

Oracle 创建表:

create table aaa as select * from bbb

 

select into from  用在oracle 是 赋值。如下:

 SELECT TRUNC(SYSDATE-1,‘DD‘) INTO ACTIONTIME FROM DUAL;
获取昨天的日期赋值给 actiontime 这个变量。
 

insert into select

 

表之间数据的复制,如下:

1
insert into  t1(id1,name1) select 3, name2 from t2

 

参考资料:http://zhidao.baidu.com/link?url=Uw0AtplkcYg9e4OU2Vsq38OD4y2g5AkrV2SqC2hPKGAU8DIwJnwzy4j1haiXJqWY-UJNMWXi_A_kEwSeeujttK

Oracle select into from 和 insert into select,布布扣,bubuko.com

Oracle select into from 和 insert into select

上一篇:Centos搭建PHP5.3.8+Nginx1.0.9+Mysql5.5.17


下一篇:MySQL导入.sql文件及常用命令