Geburtstag in der Zukunft ermitteln
Thursday, 6 March 2008
Wenn die Geburtstage im MySQL DATE Format gespeichert sind:
SELECT * FROM table
WHERE MONTH(column)>MONTH(NOW())
OR
(MONTH(column)=MONTH(NOW())
AND DAYOFMONTH(column)>DAYOFMONTH(NOW()))
ORDER BY MONTH(column), DAY(column) ASC
Tags: Mysql
The entry 'Geburtstag in der Zukunft ermitteln' was posted
on March 6th, 2008 at 19:37
and last modified on June 26th, 2010 at 22:09, and is filed under Allgemein.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.