当前位置:   article > 正文

【异常】net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: “sequence“ “SEQUENCE“_exception: net.sf.jsqlparser.parser.parseexception

exception: net.sf.jsqlparser.parser.parseexception: encountered unexpected t
Caused by: net.sf.jsqlparser.JSQLParserException: null
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatements(CCJSqlParserUtil.java:151)
	at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserMulti(JsqlParserSupport.java:46)
	... 155 common frames omitted
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "sequence" "SEQUENCE"
    at line 1, column 86.

Was expecting one of:

    "!"
    "("
    "NOT"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

原来的xml文件

    <delete id="deleteBreedProjectPermissionById">
         delete from breed_project_permission where breed_project_id = #{breedProjectId} and grant_type=#{grantType} and sequence = #{sequence}
    </delete>
  • 1
  • 2
  • 3

在这里插入图片描述

修改后:

    <delete id="deleteBreedProjectPermissionById">
         delete from breed_project_permission where breed_project_id = #{breedProjectId} and grant_type=#{grantType} and `sequence` = #{sequence}
    </delete>
  • 1
  • 2
  • 3

用反引号括起来即可
在这里插入图片描述
相关文章:https://blog.csdn.net/mashangzhifu/article/details/118928664

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/894140
推荐阅读
相关标签
  

闽ICP备14008679号