PERIOD_ADD(period,months)

Description: Returns a year and month in the format YYYYMM, resulting from the addition of months to period (in the format YYYYMM or YYMM).

Examples:

  • PERIOD_ADD(200212,1) returns 200301.

  • PERIOD_ADD(212,1) returns 200301.

See also: PERIOD_DIFF()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.