MySQL Forums
Forum List  »  Newbie

Re: DELETE records when certain parameters are met
Posted by: Peter Brawley
Date: February 17, 2017 08:47PM

> Might be too much work to have it create a new table with results, then delete from there,

?! Too much work for you, or for the server?

A set-based solution like this will be less work for the server than a row-logic solution of the sort you were attempting. If you can find a way to get it done all with a subquery rather than a temp table, by all means post it.

> then move it back.

Eh? Move what back where?

< I just need it to really only look at 2 fields:

What it looks at depends on the structure of the table and the algorithm used.

Options: ReplyQuote


Subject
Written By
Posted
Re: DELETE records when certain parameters are met
February 17, 2017 08:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.