create table tree
( node_id decimal(10,0) not null,
parent_id decimal(10,0) null
);
create unique index node_id_idx on tree(node_id) ;
( node_id decimal(10,0) not null,
parent_id decimal(10,0) null
);
create unique index node_id_idx on tree(node_id) ;
(node_id int primary key,
son_id int,
brother_id int
)
(node_id int primary key,
son_id int null,
brother_id int null
)
树不会有双亲吧?所以m_cen()的方法我同意,我在实际中也是这么用的。