Můžete použít TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
funkce:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age
Můžete použít TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
funkce:
SELECT TIMESTAMPDIFF(YEAR, '1970-02-01', CURDATE()) AS age