MySQL Forums
Forum List  »  Stored Procedures

Re: Dynamic SQL Date Format String Percent Escape Mayhem
Posted by: Peter Brawley
Date: December 25, 2013 10:15PM

How about ...

SET @stmt = CONCAT('UPDATE ', mytable, ' SET isMondayFlag = LOWER(DATE_FORMAT(dt, "%a")) = "mon" ');

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Dynamic SQL Date Format String Percent Escape Mayhem
928
December 25, 2013 10:15PM


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.