sql 2000 递归查询

2025-05-21 04:51:39
推荐回答(1个)
回答(1):

with tt(select 语句1 --初始化
union all
select 语句2)
select * from tt
在select 语句2中from的表里关联with后面的表名tt就形成递推了。