| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Marcel Forget | Date: | May 28 2003 2:40am |
| Subject: | Re: Select name, email where birthday = ?? | ||
| View as plain text | |||
Try: select name, birthday from atable where month(birthday)=month(now()) and dayofmonth(birthday)=dayofmonth(now()); Marcel ----- Original Message ----- From: "Scott Haneda" <lists@stripped> To: "MySql" <mysql@stripped> Sent: Tuesday, May 27, 2003 10:20 PM Subject: Select name, email where birthday = ?? Hello, I have a date field in my database Format is YYYY-MM-DD Once a day at 12:01AM a script is going to run that will Select name, email from users where birthday = ?? And the ?? Is where I am stuck, I don¹t care about the year at all, I just need to match on the month and day, how would I do this? ------------------------------------------------------------- Scott Haneda Tel: 415.898.2602 http://www.newgeo.com Fax: 313.557.5052 scott@stripped Novato, CA U.S.A. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=1
| Thread | ||
|---|---|---|
| • How to secure a MySQL database from people with physical access | mos | 27 May |
| • Re: How to secure a MySQL database from people with physical access | Joel Rees | 28 May |
| • Select name, email where birthday = ?? | Scott Haneda | 28 May |
| • RE: Select name, email where birthday = ?? | Adam Clauss | 28 May |
| • Re: Select name, email where birthday = ?? | Marcel Forget | 28 May |
| • RE: How to secure a MySQL database from people with physical acce ss | David Brodbeck | 27 May |
| • RE: How to secure a MySQL database from people with physical acce ss | mos | 27 May |
| • RE: How to secure a MySQL database from people with physical acce ss | mos | 27 May |
| • Re: How to secure a MySQL database from people with physical acce ss | Michael T. Babcock | 28 May |
| • Re: Select name, email where birthday = ?? | Inandjo Taurel | 28 May |
