Cómo usar TimestampDiff en una tabla en SQL
SELECT
TIMESTAMPDIFF(MONTH, '2010-01-01', '2010-06-01') result;
+--------+
| result |
+--------+
| 5 |
+--------+
1 row in set (0.00 sec)
Code language: SQL (Structured Query Language) (sql)
Salifu Tahiru