MySQL Error 1093 – Can't specify target table for update in FROM clause
Contents
MySQL Error 1093 – Can’t specify target table for update in FROM clause
wrap the condition in one more select
DELETE FROM story_category WHERE category_id NOT IN ( SELECT cid FROM ( SELECT DISTINCT category.id AS cid FROM category INNER JOIN story_category ON category_id=category.id ) AS c )```
Author -
LastMod 2015-08-06