摘要: 受到这个地址的启发http://blog.chinaunix.net/space.php?uid=660282&do=blog&cuid=369590要根据第一个查询条件,查出所有parent id=id的集,也就是树状目录递归查询,查出所有的分叶CREATE PROC spGetChildren (@id int) asdeclare @t table(id int,node_name nchar(10),parent_id int) ----声明一个临时表insert @t select * from t_tree where id = @id ... 阅读全文
posted @ 2011-09-18 21:19 终于出名 阅读(392) 评论(0) 推荐(0) 编辑