I have a date field of type datatype datetime , although H:s:i preserved, but I do not want to take into account when checking that I use CURDATE() , in which the query condition is, but 'H: S: I' considers, for example ,
SELECT ('2013-01-10 05:10:50' <= CURDATE()) FROM dual
Above the query returns false (0), why not true (1), because 2013-01-10 05:10:50 is the elapsed time. In short, I want to keep "H: s: i", but should not be taken into account when checking what the MySql function is suitable for?
Updated below
I do not want to use NOW() and SYSDATE() because these functions will consider H:s:i when checking, so I used CURDATE() , but the expected result is different when I use CURDATE() .
source share