1,其中YJ_reports关联多个YJ_check_items,现在需将item的name组合起来追加在reports后面
SELECT
report.*, (SELECT
group_concat(items. NAME)
FROM
YJ_check_items AS items
WHERE
items.report_id = report.id
) AS items
FROM
YJ_reports AS report
LIMIT 1000
1,其中YJ_reports关联多个YJ_check_items,现在需将item的name组合起来追加在reports后面
SELECT
report.*, (