Archives for the Month of March, 2008

Geburtstag in der Zukunft ermitteln

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

Warum Nadeldrucker auch Matrixdrucker heissen