MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:ML Date:February 1 2010 1:35am
Subject:Selecting Dates
View as plain text  
Hi All,

Switching from Oracle to MySQL, I seem to be having some difficulty selecting dates using
between or even where >= and <= like:

SELECT * FROM orders WHERE order_date BETWEEN='2010-01-01' AND '2010-01-30' ORDER BY


SELECT * FROM orders WHERE order_date =>'2010-01-01' AND <= '2010-01-30' ORDER BY

Neither of these work.

What am I missing?

Selecting DatesML1 Feb
  • Re: Selecting DatesLucky Wijaya1 Feb
  • Re: Selecting DatesPaul DuBois4 Feb
Re: Selecting Datessureshkumarilu1 Feb
Re: Selecting DatesJim Lyons1 Feb
  • Re: Selecting DatesML1 Feb