首页 > 数据库技术 > 详细

异常之【You have an error in your SQL syntax】

时间:2017-12-27 16:59:21      阅读:176      评论:0      收藏:0      [点我收藏+]

异常如下:

技术分享图片

 

### Error updating database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 ‘WHERE id = ‘10050‘‘ at line 15

仔细看的话  是因为SQL语句中   红色部分  末尾误写  ,   所致

 

一般遇到

 

 check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE id = ‘10050‘‘ at line 15

 

 

这种异常语句   在 ‘WHERE id = ‘10050‘‘   左边仔细查看  可以解决

2017-12-27   15:28:18

异常之【You have an error in your SQL syntax】

原文:https://www.cnblogs.com/angelye/p/8125995.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!