In MySQL I have a column timestamp
called dia_cadastr
o (2016-06-21 11:27:32), in the query I want to give a ORDER BY
only on the day, and disregard the time. That is, if they have products registered the same day, then it gives a ORDER BY RAND()
He had done so:
ORDER BY produto.dia_cadastro DESC, RAND()
But then he would have considered the time as well.