Reputation: 19453
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
Reputation: 1602
use the query
select min(date_column), max(date_column) from your_table
Upvotes: 2