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