原文:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual...

mysql 下輸入 select from Character 提示錯誤 ERROR : 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 Character at line 如果換成 ...

2014-04-04 14:43 0 15358 推薦指數:

查看詳情

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