我需要使用连接和限制来更新表。我构造了这个查询
UPDATE table1
JOIN table2 AS b
ON table1.id = b.id
SET
table1.username = b.post_username
WHERE b.post_username != ''
AND table1.username = ''
LIMIT 10
不幸的是我收到错误:
Error Code: 1221
Incorrect usage of UPDATE and LIMIT
我该如何解决这个问题?