1
I have a simple consultation in a field Datetime
, I must make the consultation stating two dates, of course recovering the values between them.
select
financ_conta_id,
financ_conta_cadastro
from
financ_conta
where
financ_conta_cadastro between CURRENT_DATE()-3 and CURRENT_DATE()
If I keep like this, the registration data today are not displayed, show only yesterday’s values less 3 days, that is, my registered accounts 21/07 are not displayed, and today is 21/07.
The result is returning as if it had done so:
financ_conta_cadastro between CURRENT_DATE()-3 and '2016-07-22'
What’s wrong with it?