update table1 set isDeleted = 1 where isDeleted = 0 and mId in (select id from table1 where isDeleted = 1 ); Error Code: 1093. You can't specify target table 'table1' for update in FROM clause
update table1 set isDeleted = 1 where isDeleted = 0 and mId in (select id from table1 where isDeleted = 1 ); Error Code: 1093. You can't specify target table 'table1' for update in FROM clause