Anda dapat menggunakan TIMESTAMPDIFF() fungsi: SELECT TIMESTAMPDIFF(YEAR, dob, CURRENT_DATE) AS age FROM dle_users