Home Sql Sqldate Mysql Date Get Year



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

Query:-

Select year(CURRENT_TIMESTAMP);

Output:-

Another way to get the current year is:-

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

Query:-

SELECT year(now());

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

Output:-

Related Tags for Mysql Date Get Year:
sqlmysqlcdategetviieearetriecurrentinmnttryearsatmyiseaarvinssrirentho


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Get Year   View All Comments

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.