UPDATE user SET
tw_oauth_token=(SELECT tw_oauth_token FROM user WHERE id=27),
tw_oauth_token_secret = (SELECT tw_oauth_token_secret FROM user WHERE id=27),
tw_user_id = (SELECT tw_user_id FROM user WHERE id=27),
handler = (SELECT handler FROM user WHERE id=27),
merged=1 WHERE id=26
这个想法是从 id = 27 的用户表中选择数据并更新 id = 26 的同一个表。
我有以下错误:
#1093 - You can't specify target table 'user' for update in FROM clause
任何帮助,将不胜感激。谢谢