我如何编写这样的查询:
with t1 as
(
select id
from table1
),
RECURSIVE t2(
select * from t2
union
...
)
目前不允许这样做?
答案 0 :(得分:0)
recursive
需要在WITH
之后,无论您放置递归CTE的位置如何:
with recursive t1 as
(
select id
from table1
), t2 (
select *
from t2
union
...
)
...