對樹進行節點彙總,要先匯子節點.再匯父節點(逐級彙總

create table tb(ID int,  PID int,  NAME varchar(10) , VALUE int,  [LEVEL] int  ) insert into tb values(0 ,    null,  'x1' ,    null,      1) insert into tb values(1 ,    0  ,  'x2' ,    null,      2)
相關文章
相關標籤/搜索