Mysql query to Delete records after select..? [duplicate]
1
This question already has an answer here:
MySQL Error 1093 - Can't specify target table for update in FROM clause
14 answers
after selecting records i want to delete that records..i tried following query - (after removing ,MAX(value) but its showing- You can't specify target table 'test' for update in FROM clause DELETE FROM test WHERE ext_no IN ( SELECT ext_no, MAX(value) FROM test GROUP BY ext_no HAVING COUNT(*) > 2 AND COUNT(*) = COUNT(CASE value WHEN 0 THEN 1 END) );
mysql select sql-delete
share | improve this question
...