sqlserver 将查询的结果创建为新表

来源:互联网 发布:施耐德m258编程软件 编辑:程序博客网 时间:2024/05/16 12:05

------在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) 
0 0
原创粉丝点击