SQL在oracle和SQLserver将查询结果创建为新表的不同之处


------在SQL中,将查询的结果创建为新表是如下这样的

select distinct t1.column1,.t2.column2  into table3  from table1.t1 join table2.t2  on(t1.column1=t2.column3);

 

------在Orale中,完成同样的过程,是这样的

Create table ed as(
select distinct e.deptno,d.loc from emp e join dept d on
(d.deptno=e.deptno) 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM