select * from table where substring(timestampField,1,8) = 'YYYYMMDD'

from Perl, execute this statement and then process each returned row

  - hcir

> My mysql database is set up having a field cdate
> -> cdate datetime
>
> has the format
>
> 0000-00-00 00:00:00
>
> If I want to fetch rows for say the date 2000-12-19, I do it using perl
> (it's a tediuos code)
> Is there a way to do it using sql queries
> Also how can I get betwee two specific date that I may mention.


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