Re: MS SQL Server to MySQL for WITH
Posted by:
Ra Nala
Date: October 14, 2017 01:54AM
select ab.col1,ab.col2 from
(
SELECT 1 AS col1, 2 AS col2
UNION ALL
SELECT 3, 4
)ab
Is above mysql syntax is correct approach sir
below MS SQL SERVER syntax
WITH cte AS
(
SELECT 1 AS col1, 2 AS col2
UNION ALL
SELECT 3, 4
)
SELECT col1, col2 FROM cte;
Subject
Views
Written By
Posted
1063
October 13, 2017 12:49PM
483
October 13, 2017 12:50PM
510
October 13, 2017 12:53PM
496
October 13, 2017 08:42PM
466
October 13, 2017 09:07PM
538
October 14, 2017 01:47AM
499
October 14, 2017 02:43PM
621
October 17, 2017 12:05PM
Re: MS SQL Server to MySQL for WITH
544
October 14, 2017 01:54AM
Sorry, you can't reply to this topic. It has been closed.
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.