MySQL Forums
Forum List  »  InnoDB

Re: MS SQL Server to MySQL for WITH
Posted by: Ra Nala
Date: October 14, 2017 01:47AM

Hi Peter Sir,

I should said, i failed to write CTE logic to a subquery as you suggested to me.


Kindly please provide query for below one which executed in MS SQL Server but not in MySQL DB.

WITH cte AS
(
SELECT 1 AS col1, 2 AS col2
UNION ALL
SELECT 3, 4
)
SELECT col1, col2 FROM cte;

Thanks for your support

Options: ReplyQuote


Subject
Views
Written By
Posted
113
October 13, 2017 12:49PM
41
October 13, 2017 12:50PM
49
October 13, 2017 08:42PM
Re: MS SQL Server to MySQL for WITH
51
October 14, 2017 01:47AM
43
October 17, 2017 12:05PM
37
October 14, 2017 01:54AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.