Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql get age from date

SELECT YEAR(CURRENT_DATE)-YEAR(t.birthday) AS ageInYears
  FROM YOUR_TABLE t 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #age #date
ADD COMMENT
Topic
Name
3+4 =