MySQL Error: Incorrect usage of UPDATE and LIMIT

后端 未结 5 1138
闹比i
闹比i 2020-11-30 09:42

How can I correct this problem so that my MySQL code works correctly.

Here is my MySQL code that gives me the problem.

$q = \"UPDATE users INNER JOIN         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 10:10

    As per the MySQL docs for UPDATE:

    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.

提交回复
热议问题