Re: comparision in the datetime field

2003-01-04 Thread Octavian Rasnita
Use: select * from table where date_col between 'xxx' and 'yyy'; You need to replace XXX and YYY with the dates you want like '2003010430' for January 04, 2003, 11:11:30. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "aman raheja" <[

re: comparision in the datetime field

2003-01-04 Thread Paul DuBois
At 15:07 +0200 1/4/03, Egor Egorov wrote: On Friday 03 January 2003 19:25, aman raheja wrote: I have a datetime field in one of my tables in the MySQL database. Can I do something like return all records between two certain dates, say between Nov 02, 2002 and Nov 07, 2002. SELECT .. WHERE m

re: comparision in the datetime field

2003-01-04 Thread Egor Egorov
On Friday 03 January 2003 19:25, aman raheja wrote: > I have a datetime field in one of my tables in the MySQL database. > Can I do something like return all records between two certain dates, say > between Nov 02, 2002 and Nov 07, 2002. SELECT .. WHERE mydatefield BETWEEN '2002-11-02 00:00:00' A