示例:SELECT Id, GROUP_CONCAT(Name SEPARATOR ',') Names FROM some_table GROUP BY id
示例:SELECT Id, GROUP_CONCAT(Name SEPARATOR ',') Names FROM some_table GROUP BY id
本文标题:Mysql将查询结果某个字段以逗号分隔,使用group_conc
本文链接:https://www.haomeiwen.com/subject/zavqzrtx.html
网友评论