mysql - SQL Only equal to day and month not year -


i have database users stores birthday. y-m-d, , im trying every user has same birthday. year can difference between each user.

so how turn this: select username table_name birthday='$birthday' working script?

$birthday gets data form, inputs example: 2002-02-02. , if users have birthday echo out. problem checks year, , im trying month , day, not year.

i have tried (exact(month ...) didnt work. missing?

you can something

select username table_name  month(birthday)=month('$birthday')  , day(birthday)=day('$birthday') 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -