user1995781
user1995781

Reputation: 19453

Get Date Range From MySQL database

How can I get the date range like month and year of the data from MySQL database? For example if a table in database has the record of data from Feb 2012 to Jan 2013, how can I get to know the date range of stored data record?

Upvotes: 0

Views: 152

Answers (1)

Travis G
Travis G

Reputation: 1602

use the query

select min(date_column), max(date_column) from your_table

Upvotes: 2

Related Questions