插入數據庫失敗([Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version)


報錯信息如下:

[SQL]INSERT INTO read VALUES(123, 456)

[Err] 1064 - 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 'read VALUES(123, 456)' at line 1

原因,read是數據庫的關鍵字,

牢記,如果一個詞是數據庫的關鍵字,那么在寫數據庫語句的時候,這個詞一定是藍色的(關鍵字顏色)!!

 


免責聲明!

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



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