【发布时间】:2019-08-21 00:54:10
【问题描述】:
我想在 Presto 中使用 CTE 编写一个递归查询来查找 Employee Hierarchy。 Presto 支持递归查询吗? 当我把简单的递归写成
with cte as(select 1 n
union all
select cte.n+1 from cte where n<50)
select * from cte
它给出的错误是
运行查询时出错:第 3:32 行:表 cte 不存在【问题讨论】: