异常之【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

posted @ 2017-12-27 15:30  Angelye  阅读(5197)  评论(0编辑  收藏  举报