I have a function that is placing timestamp values (YYYY-MM-DD HH:MM:SS) into META_VALUE column of table META.
What I want to do is to compare whether the date portion (YYYY-MM-DD) of the META_VALUE is equal to today (CURDATE()), disregarding the hour, minute and second (HH:MM:SS).
How can I accomplish this?
Allways avoid doing calculations on the field if possible: e.g.
will calculate DATE() for ALL rows in that table, so you are really talking wasted cycles here