CTE 递归

with cte(id) as(
select 1
union all 
select id + 1 from cte where id < 10
)
select * from cte

你可能感兴趣的:(sql)