Answer the question
In order to leave comments, you need to log in
How to select users by date of birth?
Database - mysql
Date of birth field of type DATE
Wrote a function that counts by date how many years, that is, with the date 1994-12-08 it displays 19
years
Answer the question
In order to leave comments, you need to log in
SELECT * FROM USERS WHERE YEAR(DOB_COLUMN) = YEAR(DOB_USER)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question