我在 Mysql 中有这个查询
SELECT z.virtuemart_product_id,z.product_name,d.product_price FROM x5lui_virtuemart_products x
inner join x5lui_virtuemart_products_en_gb z on x.virtuemart_product_id=z.virtuemart_product_id
inner join x5lui_virtuemart_product_prices d on d.virtuemart_product_id=z.virtuemart_product_id
where x.published=1;
结果是
18, 'Product 1', 600.00000
19, 'Product 2', 1200.0000
20, 'Product 3', 1800.00000
但我需要结果是这样的
'18', '19', '20'
'Product 1', 'Product 2', 'Product 3'
600.00000 , 1200.0000, 1800.00000
我怎样才能做到这一点?