假设我加入两个表并得到类似的结果
id   vendor vendor_id quantity 
1    Sony          1       25 
1    Apple         2       12  
1    HTC           3        5  
我希望结果像
id Quantity_Sony Quantity_Apple Quantity_HTC
1             25             12            5
我该怎么做,我使用左连接来加入表格。我使用 mySql