1
I am trying to make a query in Mysql as follows:
SELECT * FROM `tabela` WHERE `data` >= '2017-03-01' AND `data` <='2017-03-05')
The issue is that even having several records of the day 2017-03-05, the query only returns me records until the day 2017-03-04. I need to have the return of the 2017-03-05 day records without having to use a date above.
Someone has a solution to help me?
That was it. Thanks!
– Bruno Oliveira
@Brunooliveira if the answer of Antonio helped and solved the problem pff accept: http://meta.pt.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta below the arrows above/below the left of the answer
– Miguel
A question: is it a correct practice when Datetime do this? Why I do, but I find it strange... Don’t you have a better solution to count all day, like a function?
– Daniel