This tutorial explains how to use the MySQL PERIOD_ADD function with syntax and examples.
The MySQL PERIOD_ADD function takes a period (formatted as YYMM or YYYYMM) and adds a specified number of months to it.
The syntax for the PERIOD_ADD function in MySQL is:
A period formatted as either YYMM or YYYYMM.
The number of months to add to the period. It can be a positive or negative value.
The PERIOD_ADD function can be used in the following versions of MySQL:
Let's look at some MySQL PERIOD_ADD function examples and explore how to use the PERIOD_ADD function in MySQL.
For example: