SELECT
(
SELECT
group_concat( cont_qualify_cert.cert_name SEPARATOR ';' )
FROM
cont_qualify_cert
WHERE
cont_qualify_cert.user_id = sys_user.user_id
) AS certificateStatus
FROM
base_user_info
LEFT JOIN sys_user ON sys_user.user_name = base_user_info.empno
group_concat(cont_qualify_cert.cert_name SEPARATOR ';')
要拼接的 字段 cert_name
拼接的间隔符为 ;