Ah, ok.
The thing is, the SELECT is using a couple of inner joins to link multiple tables, so I can't specify a table to delete from as there's several.
Hi,
I'm trying to delete all the records returned in a SELECT statment, but I can't seem to get the syntax right.
I've tried:
DELETE * FROM (SELECT * FROM table_x WHERE field_x = x)
and
DELETE FROM (SELECT * FROM table_x WHERE field_x = x)
But neither seem to do the trick.
If it's of any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.