$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
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
好的,谢谢您
打错了,会提示相应的sql
咱的看不懂你打的是什么,你自己在web数据库在线管理里修改一下,然后会提示相信的sql语句
字段, 表名要用反引号, 而不是单引号...反引号在ESC键下面