我的查询是:
SELECT vendor.id, insurances.id AS ins_id, vendor_insurances.expiry_date
FROM vendor
INNER JOIN vendor_insurances
ON vendor.id=vendor_insurances.vendor_id
和输出:
id ins_id expiry_date
================================
28 1 2006-01-01
28 11 2008-01-01
我想将其转换为:
id 1 11
======================================
28 2006-01-01 2008-01-01
谢谢,