Solved

MYQL Month ,Year list

Posted on 2012-03-27
4
528 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Creating and Managing Databases with phpMyAdmin in cPanel.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now