某一字段的值用逗号分隔

SELECT GROUP_CONCAT(name) FROM sys_dict WHERE type = 1;

原文地址:https://www.cnblogs.com/zhouziyan/p/13438701.html