Anda dapat menggunakan TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
fungsi:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age
Anda dapat menggunakan TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
fungsi:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age