我怎么能写这样的查询:
with t1 as
(
select id
from table1
),
RECURSIVE t2(
select * from t2
union
...
)
目前不允许这样做?
无论你在哪里放置递归CTE,recursive
都需要在WITH
之后:
with recursive t1 as
(
select id
from table1
), t2 (
select *
from t2
union
...
)
...