DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
MySQL Age Counter
select year(curdate())-year(dob) - (right(curdate(),5) < right(dob,5)) as age from your_table
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#MySQL
#Age
#Counter
ADD COMMENT
Topic
COMMENT
Name
7+5 =
Submit