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


异常如下:

 

### 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM