MySQL check the manual that corresponds to your MySQL server version for the right syntax錯誤


地化GO的時候一直遇到一個錯誤就是check the manual that corresponds to your MySQL server version for the right syntax,反復檢查過多次語句都沒發現錯誤,后來網上搜索解決方法見到:

http://hi.baidu.com/iamzhangxinxu/blog/item/6f925a310cb80c93a8018e37.html

 

遇到的check the manual that corresponds to your MySQL server version for the right syntax錯誤。

結果發現是SQL關鍵字沖突。

可能是經驗不夠吧。

有個字段名我命名為desc,表示描述(description)。卻沒有注意到,該desc與SQL查詢語句中的降序排列關鍵字DESC沖突了!

后修改desc為descpt即問題解決!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 check the manual that corresponds to your MySQL server version for the right syntax to use near '(0) NULL DEFAULT NULL COMMENT check the manual that corresponds to your MySQL server version for the right syntax to use near check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc MySql 執行語句錯誤:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to usenear 'bookName like '%Java%'' at line 1 check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order (moneys, orderNumber) values (0.0, 'A001' 【異常】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 '"order"' at line 1 修改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 ' SQL語句報錯:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ERROR 1064 (42000): 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 '11. set password for 'root'@'localhost' 報錯--->java.sql.SQLSyntaxErrorException: 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 'delect from testd
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM