PERIOD_DIFF « Date Time Functions « MySQL Tutorial






14.34.PERIOD_DIFF
14.34.1.PERIOD_DIFF(P1,P2) returns the number of months between periods P1 and P2.