You can't specify target table 'xxx' for update in FROM clause MySQLでは、サブクエリ FROM 節と更新対象の両方に同じテーブルを使用することはでき ない。 Source: MySQL :: MySQL 5.1 リファレンスマニュアル :: 12.2.8.9 サブクエリ エラー mysql> delete from user \ -> where user.id in \ -> (select user.id from user \ -> left join reserve_data on user.id = reserve_data.user_id where reserve_data.id is null); ERROR 1093 (HY000): You can't specify target table 'use
![You can't specify target table 'xxx' for update in FROM clause - Pistolfly](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbf9f41c980033fa06efe6a0a3f8ebe12030f134/height=288;version=1;width=512/https%3A%2F%2Fwww.pistolfly.com%2Fweblog%2Fimages%2Ficon.png)