PERIOD_ADD
Add months to a period. This function adds a specified number of months to a period formatted as YYMM or YYYYMM.
Syntax
PERIOD_ADD(P,N)Description
Examples
SELECT PERIOD_ADD(200801,2);
+----------------------+
| PERIOD_ADD(200801,2) |
+----------------------+
| 200803 |
+----------------------+
SELECT PERIOD_ADD(6910,2);
+--------------------+
| PERIOD_ADD(6910,2) |
+--------------------+
| 206912 |
+--------------------+
SELECT PERIOD_ADD(7010,2);
+--------------------+
| PERIOD_ADD(7010,2) |
+--------------------+
| 197012 |
+--------------------+Last updated
Was this helpful?

