Solved

MYQL Month ,Year list

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with simplifying SQL 6 53
kill process lock Sql server 9 46
paypal ipn to mysql 3 35
SQL Server - Set Field Values ito Zero Based on Related Table 4 23
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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