I want to run a query, of course more involved, but something roughly similar to:
DELETE from table
WHERE
id IN (
SELECT id
FROM table
WHERE ...
) Doing that gives me an error message that I can't delete from the same table as I'm selecting from in a subquery clause. Soooo, right now the process I use is to manually copy the table, run the query, and then delete the copy. What is a better way of doing this? Temporary tables?