mysql8 转达梦 兼容处理 REGEXP
1.REGEXP
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [select max(group_id)group_id from t_xx where group_id REGEXP ‘^[\d]+$’]; nested exception is dm.jdbc.driver.DMException: 第 1 行, 第 71 列[REGEXP]附近出现错误:
语法分析出错
改为
select max(group_id) group_id from t_xx where REGEXP_LIKE(group_id, ‘^[\d]+$’)
还没有评论,来说两句吧...