MySQL Forums
Forum List  »  Newbie

Re: Delete records that contain a certain string
Posted by: Craig McKee
Date: June 24, 2019 09:57AM

This is what I get :(

delete from `wp_frm_items` locate( date_format(curdate()-2,'%d-%m-%y'), name ) > 0
MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'locate( date_format(curdate()-2,'%d-%m-%y'), name ) > 0' at line 1

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.