表名為mc_scheduler_in
in_detail_id scheduler_code scheduler_month pmat_id aty_need
68 Scheduler001 1 Y005000033 6.0000
69 Scheduler001 1 SF20512 .0000
70 Scheduler001 1 P005000010 .0000
71 Scheduler001 2 P012000035 22.5000
72 Scheduler001 2 Y012000858 22.5000
73 Scheduler001 3 SF21936 .0000
74 Scheduler001 3 P001000016 23.5200
75 Scheduler001 3 Y001000015 10.0800
處理成如下形式
in_detail_id scheduler_code pmat_id 1月 2月 3月 4月
68 Scheduler001 Y005000033 6.0000
69 Scheduler001 SF20512 .0000
70 Scheduler001 P005000010 .0000
71 Scheduler001 P012000035 2.5000
72 Scheduler001 Y012000858 22.5000
73 Scheduler001 SF21936 .0000
74 Scheduler001 P001000016 23.5200
75 Scheduler001 Y001000015 10.0800
就是是scheduler_month相應月份對應的qty_need只會出現在相應月份的下面,其它的位置不變,請問各位高手如何實現,我今天機子有問題發不了新貼,只好放在這