1、多列查询
SELECT
t.productName,
s.*
FROM
insure_order t,
insure_order_subinfo s
WHERE t.id = s.orderId;
2、多列转行
SELECT
t.productName,
GROUP_CONCAT(s.name, ':', s.content) 列转行信息
FROM
insure_order t,
insure_order_subinfo s
WHERE t.id = s.orderId
GROUP BY t.id;