0
I have a field on the table called registro_data_instalacao
of the kind date, I need to display the logs with the registro_data_instalacao
where the date is greater than 3 days and less than 30 days, I tried it in the form below, but without success.
SELECT *
FROM registro
WHERE registro_data_instalacao >= (CURRENT_DATE() + INTERVAL 3 DAY)
AND registro_data_instalacao <= (CURRENT_DATE() + INTERVAL 30 DAY)
See if this answers: https://stackoverflow.com/a/2793634/5074998
– Rogério Dec
If the links above and the answer given do not resolve, please [Dit] post with more details.
– Bacco