我对这个sql有一些问题
UPDATE `rate` FROM `dv_post` SET `rate`=1 WHERE `id` = 9
响应:
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
'FROMdv_post
SETrate
=1 WHEREid
= 9' at line 2'
最佳答案
更新语句没有FROM
子句
UPDATE `dv_post` SET `rate`=1 WHERE `id` = 9
关于php - 更新 sql 表问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13755078/