8
In Mysql I have a column timestamp
calling for dia_cadastr
o (2016-06-21 11:27:32), in consultation I want to give a ORDER BY
only on the day, and disregard the time. That is, if they have products registered on the same day, after it gives a ORDER BY RAND()
Had done so:
ORDER BY produto.dia_cadastro DESC, RAND()
But then he’d consider the time as well.
You’re making the filter by the month?
– Marco Souza