Re: DAYNAME problem using CASE statement
If I change the code to
set @d = '2020-04-04'; -- sat
SELECT
@d, DAYNAME(@d),
CASE DAYNAME(@d) WHEN "Saturday" THEN DATE_ADD(@d, INTERVAL 2 DAY)
ELSE DATE_ADD(@d, INTERVAL 1 DAY) END as despatchDate;
Then it works.
Im using 5.5.3.
Maybe thats the difference.
Thanks again,
John
Subject
Views
Written By
Posted
Re: DAYNAME problem using CASE statement
426
May 08, 2020 01:49AM
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.