MONTH(TODAY) Commands
I have a line in mySQL that I need to select anyone whose birthday is today.
The field name is BIRTHDATE and is shown in the database as mm/dd/yyyy. How do I select the current month and day so that I can use someone's birthday from 8/22/1970 or 8/22/1975 or 8/22/1950...etc.
I was instructed to use this, but it's not working...
mySQL="SELECT * from EE_info where MONTH(TODAY)=MONTH(BIRTHDATE) and DAY(TODAY)=DAY(BIRTHDATE)";
Any help would be greatly appreciated.
Thanks,
-Craig from Michigan.
Subject
Written By
Posted
MONTH(TODAY) Commands
August 22, 2005 10:07AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.