兼容性判定
公开资料依据 · 建议 PoC 复核支持度undeclared
严重度minor
置信度medium
依据规则my.func.group_concat
怎么改
需按命中位置逐条评估改写
判定说明
能力矩阵未声明该特征,按不支持处理并降低置信度
库侧 / 应用侧路径
库侧改造
需人工确认改造边界
应用侧改造
需人工确认改造边界
推荐路线:case_by_case。验证建议:结果长度受 group_concat_max_len 限制(MySQL 默认 1024,超长静默截断)——目标端同名变量的默认值与上限需核对;DISTINCT/ORDER BY/SEPARATOR 组合逐个验证。openGauss B 模式(dolphin)提供 group_concat
规则样例
SELECT dept, GROUP_CONCAT(name ORDER BY name SEPARATOR ';') FROM emp GROUP BY dept
SELECT GROUP_CONCAT(DISTINCT tag) FROM t
SELECT COUNT(name) FROM emp GROUP BY dept
参考来源
- https://open.10086.cn/panweidb/home
- https://opengauss.org/en/user-practice/carrier/jiangsuyidong/
- https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_group-concat
- https://en.oceanbase.com/docs/common-oceanbase-database-10000000001228196
- https://docs.opengauss.org/zh/docs/6.0.0/docs/SQLReference/%E8%81%9A%E9%9B%86%E5%87%BD%E6%95%B0.html