0
請查看我的MySQL子句。MySQL錯誤:您無法在FROM子句中指定目標表'users_words'進行更新
UPDATE `users_words` SET `priority` = (SELECT MAX(`priority`)+1 FROM `users_words`) where `userid` = 89 AND `wordid`="agree"
在這裏我要加1到現有的最大priority
字段值更新priority
領域。但是我收到錯誤You can't specify target table 'users_words' for update in FROM clause
。
我該如何解決這個問題?
完美的把戲!真棒! –