Home Sql Sqldate Mysql Date Add Year
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Mysql Date Add Year

Advertisement
Mysql Date Add Year explains to add the year to the particular date.

Mysql Date Add Year

     

Mysql Date Add Year explains to add the year to the particular date.

Understand with Example

The  Tutorial illustrate an example from 'Mysql Date Add Year'. To graspe this example, we use Add('2008-12-15',INTERVAL 1 YEAR) query that add a 1 Year to the particular date. 

SYNTAX:-ADDDATE(date,INTERVAL expr unit)

date:-Date from which the year is to be added.

INTERVAL expr unit :-No of the years to be added.

Query:-

The Query Date_Add('2008-12-15',INTERVAL 1YEAR) add a 1 year interval to the particular date.

SELECT DATE_ADD('2008-12-15', INTERVAL 1 YEAR);

Output:-

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 31, 2008

Ask Questions?    Discuss: Mysql Date Add Year  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com