2014年5月8日

java 遍历所有子节点

摘要: /** * */package com.test.controller;import java.util.ArrayList;import java.util.List;/** * @author ST2014-12 * */public class FindAllChildren { List... 阅读全文

posted @ 2014-05-08 13:17 TouTou9055 阅读(3893) 评论(0) 推荐(0) 编辑

SQL 遍历父子关系表(二叉树)获得所有子节点 所有父节点(转)

摘要: --建立測試環境Create Table A(ID Int,fatherID Int,NameVarchar(10))Insert A Select 1, NULL, 'tt'Union All Select 2, 1, 'aa'Union All Select 3, 1, 'bb'Union Al... 阅读全文

posted @ 2014-05-08 09:22 TouTou9055 阅读(832) 评论(0) 推荐(0) 编辑

导航