注册

WM_CONCAT拼接函数超出最大长度报-6108

孔超 2025/11/05 315 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DB Version: 0x7000c
【操作系统】:麒麟v10
【CPU】:x86_64
【问题描述】*:mysql迁移达梦;mysql中的SQL语句
select a.id,a.name,a.remark,
ifnull((select person_id from yx_sys_role_person where role_id=a.id and unit_id='2c90ba8479e9d3ab017aaec403e5313e' and person_id='8a84b4ab7b3988a9017b39d2224933ac' limit 1),1),a.is_default,a.code,a.is_data_auth,
(select group_concat(y.dept_ids) from yx_sys_role_person y where role_id=a.id and unit_id='2c90ba8479e9d3ab017aaec403e5313e' and person_id='8a84b4ab7b3988a9017b39d2224933ac' ) as auth_dept_ids
from yx_sys_role a
where a.deleted=0 and is_super_admin=0 ;

迁移到达梦后将 group_concat 替换成 WM_CONCAT 、LISTAGG 、LISTAGG2 同样报错,如何解决?
dept_ids 类型为longvarchar

回答 0
暂无回答
扫一扫
联系客服