DATE_ADD(curdate(), INTERVAL '1-1' YEAR_MONTH); (with minus sign) : DATE_ADD : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » DATE_ADD »

 

DATE_ADD(curdate(), INTERVAL '1-1' YEAR_MONTH); (with minus sign)


mysql>
mysql> select DATE_ADD(curdate(), INTERVAL '1-1' YEAR_MONTH);
+------------------------------------------------+
| DATE_ADD(curdate(), INTERVAL '1-1' YEAR_MONTH|
+------------------------------------------------+
2008-08-22                                     |
+------------------------------------------------+
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
» DATE_ADD