java 限制递归次数_CTE递归限制次数 2024-01-02 大全 38 作者:考证青年 CTE可以用来取递归,网上资料很多,这里就不再叙述了,今天遇到的需求是要限制只取2级,然后加了个临时的lev with tree as [],[],[],[],[],[],Lev=1 from [] where [] = '' union all a.[],a.[],a.[],a.[],a.[],a.[],Lev+1 Lev from [] a,tree b where a.=b. and Lev tags: 递归 限制 次数 叙述 临时