DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+4 =
Submit