I have a table with the following field: dh_envio (TIMESTAMP) and I want to mount a query to get all the records of this table in which the dh_envio is equal to the current date (TODAY).
I thought of it as follows:
WHERE dh.envio BEETWEEN '2014-02-17 00:00:00' AND '2014-02-17 23:59:59'
Is there any way to improve? how to use some MySQL constant? Because that way I need to get the date programmatically.