Ser*_*nov 7 postgresql recursive-query common-table-expression
我如何编写这样的查询:
with t1 as
(
select id
from table1
),
RECURSIVE t2(
select * from t2
union
...
)
Run Code Online (Sandbox Code Playgroud)
目前不允许?
小智 11
无论您将递归 CTE 放在哪里,都recursive必须位于紧随其后:WITH
with recursive t1 as
(
select id
from table1
), t2 (
select *
from t2
union
...
)
...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1877 次 |
| 最近记录: |