Y
yulin1025
Unregistered / Unconfirmed
GUEST, unregistred user!
BOM阶层排序的问题
bom_table
(parent char(10),
compent char(10),
levels int
)
parent compent levels
A B 0
A C 0
A D 0
B E 1
B F 1
E G 2
E H 2
C M 1
C N 1
M Z 2
M X 2
N W 2
N Y 2
D P 1
D Q 1
现要求输入父类A,查询出结果并排序
parent compent levels
A B 0
B F 1
B E 1
E G 2
E H 2
A C 0
C M 1
C N 1
M Z 2
M X 2
N W 2
N Y 2
A D 0
D P 1
D Q 1
小弟万分感谢!!!!!!!!!!
bom_table
(parent char(10),
compent char(10),
levels int
)
parent compent levels
A B 0
A C 0
A D 0
B E 1
B F 1
E G 2
E H 2
C M 1
C N 1
M Z 2
M X 2
N W 2
N Y 2
D P 1
D Q 1
现要求输入父类A,查询出结果并排序
parent compent levels
A B 0
B F 1
B E 1
E G 2
E H 2
A C 0
C M 1
C N 1
M Z 2
M X 2
N W 2
N Y 2
A D 0
D P 1
D Q 1
小弟万分感谢!!!!!!!!!!