一般出现这样的问题就是少些了字符,空格,逗号、引号、子母大小写的问题,唉,以后还是要规范一下代码书写的习惯。

问题描述

hobby=?, content=?, birthday=? where id = ? and id != 1
2020-12-04 09:44:14,864 [main] DEBUG [com.neusoft.usermanage.dao.UserinfoDao.updateUser] - ==> Parameters: 123456(String), test02(String), 2(String), 1(String), 0(String), http://www.jd.com(String), 打游(String), this 22222is content(String), 2020-12-04 09:44:14.516(Timestamp), 5(Integer)
2020-12-04 09:44:14,877 [main] DEBUG [org.mybatis.spring.SqlSessionUtils] - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1788cb61]
2020-12-04 09:44:14,919 [main] ERROR [com.neusoft.usermanage.service.UserServiceImpl] - UserinfoServiceImpl–>>updateUser
org.springframework.jdbc.BadSqlGrammarException:

Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'degree=‘2’,

            `type`='1',

’ at line 8

The error may exist in file [C:\Users\Administrator\Desktop\毕设资料\增删改查员工信息实战案例\demo\target\classes\mybatis\mapper\UserinfoMapper.xml]

The error may involve com.neusoft.usermanage.dao.UserinfoDao.updateUser-Inline

The error occurred while setting parameters

SQL: update userinfo SET pwd=?, userName= ? degree=?, type=?, sex=?, avatar=?, hobby=?, content=?, birthday=? where id = ? and id != 1

Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'degree=‘2’,

            `type`='1',

问题解决:

我TM 找了半天发现 xml 文件 的sql 语句 少了一个 逗号 “,” 我炸了

征服畏惧建立自信的最快最确实的方法,就是去做你害怕的事,直到你获得成功的经验。

【已解决】Cause: jva.sql.SQLSyntaxErrorException:You have an error in your SQL sytax;check the nua that..相关推荐

  1. 毕业设计Spring boot问题记录(后端三):java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;

    原创博文,欢迎转载,转载时请务必附上博文链接,感谢您的尊重 报错情况 intell IDEA调试台报错 Caused by: java.sql.SQLSyntaxErrorException: You ...

  2. 使用mybatis框架分页插件报错### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;

    报错信息如下: ### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the ...

  3. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; mysql的xml文件出现异常解决方案

    今天在写一个查询接口的时候,测试中发现的一个问题,异常全文为: Cause: java.sql.SQLSyntaxErrorException: You have an error in your S ...

  4. 【JavaDebug(二)】之Mysql语法异常java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; chec

    本文章由公号[开发小鸽]发布!欢迎关注!!! 老规矩–妹妹镇楼: 一. 异常 (一)异常描述 java.sql.SQLSyntaxErrorException: You have an error i ...

  5. mybatis java sql_mybatis java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;

    You have an error in your SQL syntax;  这个错误 是报的 sql 语法不对: 解决起来 还是有点麻烦的,如果sql 单独运行没有问题,就需要考虑 mybatis的 ...

  6. java报错java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that

    仔细阅读了代码发现 import java.sql.*;public class DataBase {public static void main(String[] args) throws SQL ...

  7. php引用python出现502,【已解决】python执行出错:HTTPError: HTTP Error 502: Bad Gateway

    [已解决]python执行出错:HTTPError: HTTP Error 502: Bad Gateway [背景] 某此脚本执行,出现错误:LINE 1687 : ERROR    Unknown ...

  8. 成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an

    成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos and ...

  9. 已解决:Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:

    1.问题描述 在部署k8s时,有个步骤需要设置centos机器的时区,命令如下: timedatectl set-timezone Asia/Shanghai timedatectl set-loca ...

最新文章

  1. SQLServer特殊字符/生僻字与varchar
  2. VTK:相互作用之SelectAVertex
  3. 模板技巧之:费用科目条件过滤
  4. BusinessPartner Relationship in WebUI and Fiori
  5. aws dynamodb_DynamoDB备忘单–您需要了解的有关2020 AWS认证开发人员助理认证的Amazon Dynamo DB的所有信息
  6. Angular Render2
  7. 设计模式笔记零:设计模式简介
  8. 关于在asp.net中的调试
  9. github Repository not found 解决办法
  10. HTML5对表单的约束验证
  11. java 线程池 连接池_浅析Tomcat高并发之连接池、线程池
  12. PHPWAMP自定义php版本的方法
  13. 怎么把ide改成ahci_怎么IDE改成AHCI
  14. VS2019设置背景图片方案
  15. python读取excel一行一行的读取_python读取excel数据
  16. 巨潮资讯网-多层次资本市场信息披露平台
  17. java算法合集-九阳神功第三式滑动窗口
  18. 让火狐firefox朗读文本
  19. 数字电路反相器符号_反相器
  20. Python读取键盘输入到一维列表及二维列表

热门文章

  1. 双粒子格林函数卷积优化
  2. C语言网购打折商品V2.0
  3. 【Guacamole中文文档】二、用户指南—— 2.Guacamole源码安装
  4. centos检测不到磁盘_centos7 安装时候检测不到空余硬盘的解决办法
  5. 探索Apache Hudi核心概念 (4) - Clustering
  6. 转载:让理科生沉默,让文科生流泪的综合题
  7. 用python画一只可爱的布朗熊
  8. Altium Designer 19如何在PCB中添加自己的图片Logo
  9. 抖音下拉宝说抖音下拉框有没有效果呢?
  10. 线程池原理——高频面试题