72
MySQL Date/Time period_add() Function
The period_add() is a MySQL date/time function. This function adds the given number of month in the given period in the formate YYMM or YYYYMM.
Syntax
Parameter:
Period : period value in formate YYMM or YYYYMM
Number: number of months to be added in period.
Returns:
This function returns the result formatted as YYYYMM.
Example 1
Output:
Example 2
Output:
Next TopicMySQL datetime