MySQL Forums
Forum List  »  Newbie

Re: Delete records that contain a certain string
Posted by: Peter Brawley
Date: June 24, 2019 09:49AM

delete from tablename
where locate( date_format(curdate()-1,'%d-%m-%y'), columnname ) > 0;

Options: ReplyQuote




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.