【已解决】Cause: jva.sql.SQLSyntaxErrorException:You have an error in your SQL sytax;check the nua that..
一般出现这样的问题就是少些了字符,空格,逗号、引号、子母大小写的问题,唉,以后还是要规范一下代码书写的习惯。
问题描述
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..相关推荐
- 毕业设计Spring boot问题记录(后端三):java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;
原创博文,欢迎转载,转载时请务必附上博文链接,感谢您的尊重 报错情况 intell IDEA调试台报错 Caused by: java.sql.SQLSyntaxErrorException: You ...
- 使用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 ...
- 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 ...
- 【JavaDebug(二)】之Mysql语法异常java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; chec
本文章由公号[开发小鸽]发布!欢迎关注!!! 老规矩–妹妹镇楼: 一. 异常 (一)异常描述 java.sql.SQLSyntaxErrorException: You have an error i ...
- 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的 ...
- 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 ...
- php引用python出现502,【已解决】python执行出错:HTTPError: HTTP Error 502: Bad Gateway
[已解决]python执行出错:HTTPError: HTTP Error 502: Bad Gateway [背景] 某此脚本执行,出现错误:LINE 1687 : ERROR Unknown ...
- 成功解决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 ...
- 已解决:Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
1.问题描述 在部署k8s时,有个步骤需要设置centos机器的时区,命令如下: timedatectl set-timezone Asia/Shanghai timedatectl set-loca ...
最新文章
- SQLServer特殊字符/生僻字与varchar
- VTK:相互作用之SelectAVertex
- 模板技巧之:费用科目条件过滤
- BusinessPartner Relationship in WebUI and Fiori
- aws dynamodb_DynamoDB备忘单–您需要了解的有关2020 AWS认证开发人员助理认证的Amazon Dynamo DB的所有信息
- Angular Render2
- 设计模式笔记零:设计模式简介
- 关于在asp.net中的调试
- github Repository not found 解决办法
- HTML5对表单的约束验证
- java 线程池 连接池_浅析Tomcat高并发之连接池、线程池
- PHPWAMP自定义php版本的方法
- 怎么把ide改成ahci_怎么IDE改成AHCI
- VS2019设置背景图片方案
- python读取excel一行一行的读取_python读取excel数据
- 巨潮资讯网-多层次资本市场信息披露平台
- java算法合集-九阳神功第三式滑动窗口
- 让火狐firefox朗读文本
- 数字电路反相器符号_反相器
- Python读取键盘输入到一维列表及二维列表