MySQL把两个字段用逗号分隔合并成一个字段

select CONCAT(第一个字段名,',',第二个字段名) as 别名 from 表名
posted @ 2022-05-11 11:11  锐洋智能  阅读(638)  评论(0编辑  收藏  举报