X
xnfzy
Unregistered / Unconfirmed
GUEST, unregistred user!
table :bom <br>t_mitm t_pono t_sitm<br>160K88351J 10 BA-2-CTN-1 <br>160K88351J 20 BA-2-WK-1 <br>160K88351J 30 BA-1-GBAN-2 <br>160K88351J 40 PL-410-310 <br>160K88351J 50 PL-404.5-304.5 <br>160K88351J 60 BLR-SB-600-800 <br>160K88351J 70 PTU 160K88351<br>以上是第一阶<br>-------------<br>PTU 160K88351 10 913W01057GEX2 <br>PTU 160K88351 15 LBL-17-4 <br>PTU 160K88351 20 SMT 160K88351 <br>以上是第二阶<br>-------------- <br>SMT 160K88351 10 E3A3292K1<br>SMT 160K88351 20 107E23620TG <br>SMT 160K88351 30 902W11031G <br>SMT 160K88351 40 903W02068TG <br>SMT 160K88351 50 LBL-17-5.5 <br>以上是第二阶<br>如何写语句可得到如下结果(有下阶的,不显示本阶最后一条,如第一阶没有了t_pono=70,第二阶不显示t_pono=20): <br>160K88351J 10 BA-2-CTN-1 <br>160K88351J 20 BA-2-WK-1 <br>160K88351J 30 BA-1-GBAN-2 <br>160K88351J 40 PL-410-310 <br>160K88351J 50 PL-404.5-304.5 <br>160K88351J 60 BLR-SB-600-800 <br>PTU 160K88351 10 913W01057GEX2 <br>PTU 160K88351 15 LBL-17-4 <br>SMT 160K88351 10 E3A3292K1<br>SMT 160K88351 20 107E23620TG <br>SMT 160K88351 30 902W11031G <br>SMT 160K88351 40 903W02068TG <br>SMT 160K88351 50 LBL-17-5.5 <br>也就是,当查询第一阶代码(160K88351J)时,列表中的t_sitm有下阶组成的,则显示下阶组成,小弟在此拜谢!