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刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM