How to search dob in db is in the yyyy-mm-dd strucuture. But i have to compare only with yyyy of the

Posted by Fero on Stack Overflow See other posts from Stack Overflow or by Fero
Published on 2010-06-16T06:38:15Z Indexed on 2010/06/16 6:42 UTC
Read the original article Hit count: 203

Filed under:

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

© Stack Overflow or respective owner

Related posts about mysql