原文:pymysql 1064, 'You have an error in your SQL syntax; check the manual that corresponds to

在python 連接mysql時,最近一直出現了 , 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 convenience stores in Beijing Pilot sell ...

2019-11-20 11:15 0 3101 推薦指數:

查看詳情

SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

  出現上面異常的原因:是因為EJB實體類中有一個自動是update,它與數據庫表關聯映射。update是sql語句中的關鍵字,因此會出錯。   總結:在網上搜索了一下,這類異常大部分都是sql語句有問題。可以查看該語句中是否有關鍵字,拼接是否有錯(引號),字段類型等。 ...

Wed Jan 08 22:06:00 CST 2014 0 6178
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM