【YashanDB 知识库】解决 mybatis 的 mapper 文件 sql 语句结尾加分号";"报错 掘金骑士 2025-03-23 51 阅读1分钟 现象 mybatis 或 mybaits-plus 的 mapper 文件 sql 结尾加分号";" 执行时报错:”YAS-04209 unexpected word;“ 解决办法 将 sql 结尾分号“;”去掉。 使用注解方式写的 sql 语句也会遇到同样的问题,解决办法一样,去掉分号”;“。