+ -
当前位置:首页 → 问答吧 → psql支持递归查询吗?

psql支持递归查询吗?

时间:2011-08-12

来源:互联网

psql支持类似如下的递归查询吗?
with f as
(
select * from a where exists(select 1 from b where a.b=b.a)
union all
select a.* from a,f where a.b=f.a)

作者: guo19890617   发布时间: 2011-08-12

8.4以后支持

作者: WWWWA   发布时间: 2011-08-12