MySQL动态透视

MySQL动态透视

我有一张这样的产品零件表:部分part_id part_type product_id ————————————– 1 A 1 2 B 1 3 A