sql递归查询,查询节点下的所有子节点和父节点
-- 查找所有父节点with tab as(select Type_Id,ParentId,Type_Name from Sys_ParamType_V2_0 where Type_Id=316--子节点union allselect b.Type_Id,b.ParentId,b.Type_Namefrom tab a,--子节点数据集 Sys_ParamType_V...
原创
2019-11-22 17:01:04 ·
2298 阅读 ·
0 评论