收藏的几个树型结构的问题,一起贴出来,一起研究一下http://expert.csdn.net/Expert/topic/1149/1149874.xml?temp=.2885553
http://expert.csdn.net/Expert/topic/1375/1375432.xml?temp=.1264917
http://expert.csdn.net/Expert/topic/1418/1418964.xml?temp=.7054102

解决方案 »

  1.   

    in sql server能不能直接使用sql语句得到树呢?
    比如:得到某机构的所有下级机构这样的问题.
      

  2.   

    看了大家说的构造树的作品,都是使用了过程,写了一大堆的代码,很繁琐啊
    在oracle一个sql就搞定了。
      

  3.   

    在 Oracle 中;select * from sys_dept start with dept_id = 01 connect by prior dept_id = dept_id_up