How to search dob in db is in the yyyy-mm-dd strucuture. But i have to compare only with yyyy of the
- by Fero
Hi
How to search dob in db is in the yyyy-mm-dd strucuture. But i have to compare only with yyyy of the field using mysql.
example:
id dob
1 1999-05-10
2 2000-10-05
I am having only the year 2000 . Now how can i get the record 2000-10-05 using mysql search query.
thanks in advance