Hello,

Is there a more general way to compare DATE values than the following.

...WHERE TO_DAYS(myDateField) > TO_DAYS('2001-02-14');


I really have to objection to converting to a common unit of days in
order to compare (as long as I don't care about comparing times within
the same day), but I imagined there would be a more general DATE type
that could be compared uniformly, and a hypothetical TO_DATE() function
that would cast appropriately.

Something that would accomodate the following:

...WHERE TO_DATE(myDateField) > TO_DATE('1997-10-04 22:23:00')

as well as:

...WHERE TO_DATE(myDateField) > TO_DATE('1997-10-04')

You get the idea... thoughts?

Best,
Nick


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to