I’m having a date field of datatype datetime,even though H:s:i is stored but I don’t want take into consideration in validations for that I’m using CURDATE() in where condition of query but ‘H:S:i’ is being considering, for example
SELECT ('2013-01-10 05:10:50' <= CURDATE()) FROM dual
Above query returns false(0),why not true(1) because 2013-01-10 05:10:50 is a past time. In short, I want to store ‘H:s:i’ but should not consider while validating for that which MySql function will be suitable ?
Updated below content
I don’t want use NOW() and SYSDATE() because these functions will consider H:s:i while validating,So that I’ve used CURDATE() but expected result is differ when I’m using CURDATE().
You can try this: