If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Common Table Expression (CTE) available for MySQL?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-06, 20:17
tingshen tingshen is offline
Registered User
 
Join Date: Oct 2006
Posts: 115
Common Table Expression (CTE) available for MySQL?

I get to know about CTE through SQL 2005 and it wasn't available for SQL 2000 and earlier version of MS SQL. I intend to use CTE in my stored procedures but am afraid it may not be supported by other non-SQL 2005 databases. Just to make sure I can write an SQL script that most DBMS is able to understand, so just wondering if MySQL is able to support CTE? is it a microsoft thing or open to all?
Reply With Quote
  #2 (permalink)  
Old 11-01-06, 21:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
CTEs are part of the SQL-99 standard

no, mysql doesn't support CTEs, as far as i know
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-23-07, 08:44
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by r937
CTEs are part of the SQL-99 standard.
no, mysql doesn't support CTEs, as far as i know
Even PostgreSQL does not (yet) support CTEs, to my surprise.
The only RDBMS of which I know it already supports CTEs are DB2, Oracle and MS-SQLserver.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/

Last edited by Peter.Vanroose; 06-23-07 at 08:48.
Reply With Quote
  #4 (permalink)  
Old 03-22-09, 15:07
VLDG VLDG is offline
Registered User
 
Join Date: Mar 2009
Posts: 24
Firebird support CTE

Firebird 2.1 Release Notes
Reply With Quote
  #5 (permalink)  
Old 03-22-09, 15:11
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by Peter.Vanroose
The only RDBMS of which I know it already supports CTEs are DB2, Oracle and MS-SQLserver.
Oracle does not support the recursive CTE only "regular".
Reply With Quote
  #6 (permalink)  
Old 05-08-09, 16:06
baest baest is offline
Registered User
 
Join Date: May 2009
Posts: 1
PostgreSQL will have CTR in 8.4

The current beta of PostgreSQL 8.4 has CTE along with many other nice features.

Link to description:
WITH Queries
Reply With Quote
  #7 (permalink)  
Old 05-08-09, 16:15
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by baest
The current beta of PostgreSQL 8.4 has CTE along with many other nice features.
Looks like it even includes recursive SQL! Great!!
I'm going to download and try out 8.4 A.S.A.P.

Anyone knows what the MySQL plans are for CTEs?
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On