MYQL Month ,Year list

Posted on 2012-03-27
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
Question by:dynamicweb09

Expert Comment

ID: 37775259
Whats your starting data?
LVL 24

Assisted Solution

johanntagle earned 250 total points
ID: 37775271
See just change the start and end dates and also change MonthName(aDate) to date_format(aDate, '%M %Y')

Author Comment

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

Accepted Solution

BuggyCoder earned 250 total points
ID: 37775407

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