Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对这个 sql 有一些问题
UPDATE `rate` FROM `dv_post` SET `rate`=1 WHERE `id` = 9
响应 :
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 2 行的 “FROM dv_postSET rate=1 WHERE id= 9”附近使用正确的语法
dv_post
rate
id
更新语句没有FROM子句
FROM
UPDATE `dv_post` SET `rate`=1 WHERE `id` = 9
您的更新查询的语法不正确,不应包含FROM.
试试这个: