在MySQL中获取每个月的最后一条记录....?
我在为MySQL编写查询时遇到问题。我在数据库中有以下字段
id created_on status
1 2011-02-15 12:47:09 1
2 2011-02-24 12:47:09 1
3 2011-02-29 12:47:09 1
4 2011-03-11 12:47:09 1
5 2011-03-15 12:47:09 1
6 2011-03-22 12:47:09 1
7 2011-04-10 12:47:09 1
8 2011-04-11 12:47:09 1
我需要.那是为了和select the last record of each month
month FEB record # 3
month MARCH record # 6
month APRIL record # 8
请帮帮我.....
提前致谢.....