为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM*
【操作系统】:window
【CPU】:
【问题描述】:能实现mysql中group_concat中内容排序吗
SELECT nr.noticeId,group_concat(u.id order by u.id asc) AS unitId,count() cnt
FROM pro_notice_relation nr
LEFT JOIN sys_organ u ON u.id=nr.targetId
WHERE nr.type=‘2’
GROUP BY nr.noticeId
可搜索达梦SQL手册,LISTAGG函数用法。