MySQL Error: Incorrect usage of UPDATE and LIMIT(MySQL 错误:错误使用 UPDATE 和 LIMIT)
问题描述
如何纠正这个问题,以便我的 MySQL 代码正常工作.
How can I correct this problem so that my MySQL code works correctly.
这是我的 MySQL 代码,它给我带来了问题.
Here is my MySQL code that gives me the problem.
推荐答案
根据 MySQL docs for 更新:
As per the MySQL docs for UPDATE:
对于多表语法,UPDATE 更新 table_references 中命名的每个表中满足条件的行.在这种情况下,不能使用 ORDER BY 和 LIMIT.
For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.
这篇关于MySQL 错误:错误使用 UPDATE 和 LIMIT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!