SELECT EXTRACT(YEAR FROM '1999-07-02'); : EXTRACT : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » EXTRACT »

 

SELECT EXTRACT(YEAR FROM '1999-07-02');


mysql>
mysql> SELECT EXTRACT(YEAR FROM '1999-07-02');
+---------------------------------+
| EXTRACT(YEAR FROM '1999-07-02') |
+---------------------------------+
|                            1999 |
+---------------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» EXTRACT