select * from *table_name* where *datetime_column* between '01/01/2009' and curdate()
or using >=
and <=
:
select * from *table_name* where *datetime_column* >= '01/01/2009' and *datetime_column* <= curdate()
More Related Contents:
- MySQL SELECT WHERE datetime matches day (and not necessarily time)
- MySQL Query – Records between Today and Last 30 Days
- How to get an age from a D.O.B field in MySQL?
- How do I get the first day of the week of a date in mysql?
- Compare only day and month with date field in mysql
- Recreating a query using INNER JOIN? [duplicate]
- MySQL – UPDATE query based on SELECT Query
- How to convert a string to date in MySQL?
- Create a temporary table in a SELECT statement without a separate CREATE TABLE
- Converting a date in MySQL from string field
- MySQL: Select All Dates In a Range Even If No Records Present
- Ordering by specific field value first
- SELECT / GROUP BY – segments of time (10 seconds, 30 seconds, etc)
- CURRENT_DATE/CURDATE() not working as default DATE value
- INSERT INTO…SELECT for all MySQL columns
- MySQL select statement with CASE or IF ELSEIF? Not sure how to get the result
- Get the latest date from grouped MySQL data
- MySQL difference between two rows of a SELECT Statement
- MySQL – How to search for exact word match using LIKE?
- Count days between two dates, excluding weekends (MySQL only)
- How to select the most recent set of dated records from a mysql table
- MySQL date format
- quick selection of a random row from a large table in mysql
- Converting SELECT DISTINCT ON queries from Postgresql to MySQL
- SELECT query return 1 row from each group
- Comma separated string of selected values in MySQL
- SELECT INTO Variable in MySQL DECLARE causes syntax error?
- MySQL Error: #1142 – SELECT command denied to user
- MySQL cumulative sum grouped by date
- MySQL cartesian product between two SELECT statements