Re: MySQL (SQL) Newbie.. Need help with a Query

2005-06-07 Thread mfatene
hi, that's the same. If you use between, mysql do the rest for you : mysql> explain SELECT * FROM passengers WHERE -> reservation_date_time >= '2005-01-01 12:10:00' -> AND reservation_date_time <= '2005-05-01 12:10:00'; ++-++---+---++

Re: MySQL (SQL) Newbie.. Need help with a Query

2005-06-06 Thread mfatene
resubmitted Selon [EMAIL PROTECTED]: > hi, > that's the same. If you use between, mysql do the rest for you : > > mysql> explain SELECT * FROM passengers WHERE > -> reservation_date_time >= '2005-01-01 12:10:00' > -> AND reservation_date_time <= '2005-05-01 12:10:00'; > ++-

Re: MySQL (SQL) Newbie.. Need help with a Query

2005-06-05 Thread Michael Stassen
Sebastian wrote: Cory Robin wrote: I'm trying to return all records between two dates.. The fields are datetime fields... Which is better? The following or using BETWEEN? (A little lost here) SELECT * FROM passengers WHERE reservation_date_time >= '2005-01-01 12:10:00' AND reservation_date

Re: MySQL (SQL) Newbie.. Need help with a Query

2005-06-05 Thread Sebastian
Cory Robin wrote: I'm trying to return all records between two dates.. The fields are datetime fields... Which is better? The following or using BETWEEN? (A little lost here) SELECT * FROM passengers WHERE reservation_date_time >= '2005-01-01 12:10:00' AND reservation_date_time <= '2005-05-0