Du kan använda TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
funktion:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age
Du kan använda TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
funktion:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age