Home Sql Sqldate Mysql Date Add Year



Mysql Date Add Year
Posted on: December 31, 2008 at 12:00 AM
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:-

border="0" src="Add-Year.gif" width="307" height="38">

Related Tags for Mysql Date Add Year:
sqlmysqlcdateaiaddtoeareulartinpartmparddadicuexplainyearsatmyeaarrtxpssthplplaio


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Add Year  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.