PERIOD_ADD(P,N) adds N months to period P (in the format YYMM or YYYYMM). : PERIOD_ADD : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » PERIOD_ADD »

 

PERIOD_ADD(P,N) adds N months to period P (in the format YYMM or YYYYMM).


Returns a value in the format YYYYMM.

The period argument P is not a date value.

mysql>
mysql> SELECT PERIOD_ADD(9803,2);
+--------------------+
| PERIOD_ADD(9803,2|
+--------------------+
|             199805 |
+--------------------+
row in set (0.00 sec)

mysql>
mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» PERIOD_ADD