Andrew Warner wrote:
> 
> how do you query on a TIMESTAMP column to return all records of date today?
> 
> I've been using "where date >= 20010418 AND date < 20010419" syntax
> and changing the dates as necessary, but I'd like to replace this
> with some kind of today() function.
> 
> Andrew


Use now() and DATE_FORMAT to do something similar to what you are doing
above, see the manual at www.mysql.com for details.

---------------------------------------------------------------------
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