I'm now having trouble with using dateadd() function. Basically I want to add 1 day to cexpireday(timestamp) if it is at least 10 days after current day.
I have tried two ways but neither of them work
update card
set cexpireday = dateadd(day,1,cexpireday)
where cexpireday - current_timestamp() >= '0000-00-10 00:00:00'
and
update card
set cexpireday = date_add(cexpireday,INTERVAL 10 day )
where datediff(day,cexpireday,current_timestamp) >= 10
I got "dateadd does not exist" for the first and "incorrect parameter to navigate function datediff()" for the second.
Can anyone help me with this?