Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Sql Sqldate Mysql Date Get Year

Related Tutorials


Share on Google+Share on Google+

Mysql Date Get Year

Mysql Date Get Year is the way of retrieving the current year.

Mysql Date Get Year


Mysql Date Get Year is the way of retrieving the current year.

Understand with Example

The Tutorial illustrate an example from 'Mysql Date Get Year'. To understand and grasp this example, we use the following syntax:

year(CURRENT_TIMESTAMP ): This Query  returns the current year. This is synonyms for NOW().




Another way to get the current year is:-

The given below Query return you the current year as field name year(now( )).


SELECT year(now());

now():-This is the inbuilt function in the MySql which returns the current Date and Time of the System.



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

Related Tutorials

Discuss: Mysql Date Get Year   View All Comments

Post your Comment

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