The difference between SQL in oracle and SQLserver to create query results as new tables

The difference between SQL in oracle and SQLserver to create query results as new tables

------In SQL, the result of a query is created as a new table as follows

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

 

------In Orale, complete the same process, like this

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326896261&siteId=291194637