简体   繁体   中英

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?

使用查询

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM