当前位置:Gxlcms > 数据库问题 > SQLServer查询所有子节点

SQLServer查询所有子节点

时间:2021-07-01 10:21:17 帮助过:41人阅读

用CTE递归 ;with as  ( select from tab where id=1 union all select a.* from tab as inner join as on a.pid=b.id ) select from f

SQLServer查询所有子节点

标签:lin   递归   index   with   union   where   节点   number   nbsp   

人气教程排行