提问:id mc parent1 机械 -12 化工机械 13 反应器 2相得到 id mc parent rj1 机械 -1 机械2 化工机械 1 机械\化工机械3 反应器 2 机械\化工机械反应器关键是树结构的层次不确定,不知道有多少级解答:use InsideTSQL2008;go if OBJECT_ID('dbo.Test_tab') is not null drop table dbo.Test_tab;create table dbo.Test_tab( id int primary key, mc nvarchar(100) not null, parentid Read More
posted @ 2011-04-28 17:58 咸鱼公子 Views(177) Comments(0) Diggs(0) Edit