MySQL錯誤

1.ERROR 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax***

仔細看看你的數據庫語句,肯定是什麼地方寫錯了。

例如,我下面的語句就是在句末多了個“,”號,結果出現了這個錯誤。

insert into User(roleId,locationId,userName,password,phone,createTime,disable) values(1,32,'xingpeng','25d55ad283aa400af464c76d713c07ad','1234567890',now(),0,);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章