$sql="UPDATE 'student' SET 'course'='javascript','grade'=88,'WHERE 'id'=3";運行後提示;連線成功更新失敗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 ''student' SET 'name'='小明','course'='javascript','grade'=88, 'create_tim' at line 1
好的,謝謝您
打錯了,會提示對應的sql
咱的看不懂你打的是什麼,你自己在web資料庫線上管理裡修改一下,然後會提示相信的sql語句
欄位, 表名要用反引號, 而不是單引號...反引號在ESC鍵下面