---简单语法事例
WITH rec(HT,LX,ID)
AS(
sel * from (
SELECT
'HT' HT
,'LX' LX
,1 AS ID ) a
UNION ALL
sel * from (
SELECT
'HT2' a
,'LX2' b
,1 AS ID ) b
)
sel * from rec
---简单语法事例
WITH rec(HT,LX,ID)
AS(
sel * from (
SELECT
'HT' HT
,'LX' LX
,1 AS ID ) a
UNION ALL
sel * from (
SELECT
'HT2' a
,'LX2' b
,1 AS ID ) b
)
sel * from rec