在MySQL中的Update行中使用LIMIT
- 论坛
- 在MySQL中的Update行中使用LIMIT
20 浏览
在MySQL中的Update行中使用LIMIT
我正在尝试更新数据库中的某些行。如果我不加限制地运行,就能正常工作,但如果我加上限制,就会出现以下错误:
1064 - 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 '35' at line 1
我的查询语句如下:
UPDATE number_list SET sync = 0 WHERE server = 1 ORDER by id ASC LIMIT 0,35
如果有人能纠正我,请告诉我。