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) 

 

posted @ 2013-08-21 15:25  残阳飞雪  阅读(5361)  评论(0编辑  收藏  举报