Chosen1cwp's Blog

MySQL查询某一列列值拼接起来

使用GROUP_CONCAT()查询某一列并把列值拼接起来SELECTGROUP_CONCAT(concat("'",a.agent_code,"'"))FROMagent_relation a WHEREa.relation_type = '03' AND

Administrator Administrator 发布于 2022-01-24