异常信息为FUNCTION xxx.sum does not exist,意思为找不到sum()方法。
异常信息
java.sql.SQLSyntaxErrorException: FUNCTION xxx.sum does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
解决思路:
检查mybatis的xml文件sql写法。
- 错误写法:仔细检查,sum和(*)之间是否多个空格。
select sum (*) from student - 正确写法:
select sum(*) from student
本文介绍了一个常见的MyBatis SQL语法错误——FUNCTIONxxx.sumdoesnotexist,并提供了详细的解决方法。主要针对SUM函数使用时出现的空格问题,通过调整SQL语句中的空格位置来修复该错误。
FUNCTION xxx.sum does not exist&spm=1001.2101.3001.5002&articleId=118386609&d=1&t=3&u=6ed45e8e7c3a4a0789d958c7a7e81cd0)
2689

被折叠的 条评论
为什么被折叠?



