Concat函数拼接查询
SELECT f_subcontract_unit_name, CONVERT ( concat( '好: ', count( IF ( f_evaluation_result = '好', 1, NULL ) ), '次', ',差: ', count( IF ( f_evaluation_result = '差', 1, NULL ) ), '次' ) USING utf8 ) AS evaluationResult FROM f_score_result GROUP BY f_subcontract_unit_id

这里推荐一篇大佬的博客关于:(295条消息) SQL中CONVERT()函数用法详解_啊猿的博客-CSDN博客