我是 MYSQL 查询语句的新手,我目前被困在一些代码中,如下所示
UPDATE fb_messages
SET sent = 'Yes'
WHERE msg_id = (SELECT MAX(msg_id) AS MSG_ID
FROM fb_messages
WHERE sent = 'No')
我收到此错误
#1093 - You can't specify target table 'fb_messages' for update in FROM clause
我搜索了解决类似情况的解决方案,但我真的找不到,请帮忙