Solved

MYQL Month ,Year list

Posted on 2012-03-27
4
572 Views
Last Modified: 2012-03-29
I want the output like the below rows in mysql.The logic is from current month year to next 20 month year.

March 2012
April 2012
May 2012
June 2012
.....
....
December 2013
0
Comment
Question by:dynamicweb09
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 9

Expert Comment

by:OCDan
ID: 37775259
Whats your starting data?
0
 
LVL 24

Assisted Solution

by:johanntagle
johanntagle earned 250 total points
ID: 37775271
See http://stackoverflow.com/questions/9511409/creating-a-list-of-month-names-between-two-dates-in-mysql just change the start and end dates and also change MonthName(aDate) to date_format(aDate, '%M %Y')
0
 
LVL 1

Author Comment

by:dynamicweb09
ID: 37775281
my starting data is from current month and year. and we need next 20 month and year.everything is dynamic.
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 250 total points
ID: 37775407
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question