Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Usage of CTE - SQL Server Vs ORACLE

Mar 7 2011 3:31AM by Madhivanan   

Common table expression(CTE) can be used both in SQL Server and Oracle. However there is a significant difference between them if you use cte to insert data to a table. In SQL server, you need to create a cte first and then insert data to a table. But in ORACLE cte definition should be preceded by insert statement.

SQL Server

create table test(i int)
GO
;with cte (i)
as
(
	select 1 union all
	select 2
)
insert into test(i)
select i from cte
select i from test

ORACLE

create table test(i number)

insert into test
with cte 
as
(
	select 1 from dual union all
	select 2 from dual
)
select * from cte
select * from testing1

Tags: tsql, BRH, SQL Server, #TSQL, #SQLServer,


Madhivanan
3 · 40% · 12924
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]