Retrieve year from a date : Year : Date Time SQL / MySQL


SQL / MySQL » Date Time » Year »

 

Retrieve year from a date



 SELECT YEAR(CURRENT_DATE)
/*mysql>  SELECT YEAR(CURRENT_DATE);
+--------------------+
| YEAR(CURRENT_DATE) |
+--------------------+
|               2005 |
+--------------------+
1 row in set (0.00 sec)

*/
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Date Time
» Year