i would need to help how can i save into my variable @today from CURRENT_DATE() value on VARCHAR type as you can see in first SET row and in the second row in my variable @yesterday i would like to save the value in DATE type.
SET @today=CAST(CURRENT_DATE() AS VARCHAR(50)),
@yesterday=CAST(DATE_ADD(CURRENT_DATE, INTERVAL -1 DAY) AS DATE)
SELECT @today, @yesterday
Thanks for your help
yyyy-mm-ddin pretty much all clients.