SELECT TIMESTAMPDIFF(YEAR,'2002-05-01','2001-01-01'); : TIMESTAMPDIFF : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » TIMESTAMPDIFF »

 

SELECT TIMESTAMPDIFF(YEAR,'2002-05-01','2001-01-01');


mysql>
mysql> SELECT TIMESTAMPDIFF(YEAR,'2002-05-01','2001-01-01');
+-----------------------------------------------+
| TIMESTAMPDIFF(YEAR,'2002-05-01','2001-01-01') |
+-----------------------------------------------+
|                                            -|
+-----------------------------------------------+
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
» TIMESTAMPDIFF