利用sql将查询结果另存为一个表


在sql中:

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

在oracle中:

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