na samym poczatku strony, do ktorej linka dostales masz:
Cytat
Here is an example that uses date functions. The following query selects all rows with a date_col value from within the last 30 days:
mysql> SELECT something FROM tbl_name
-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;
Normalnie juz lepiej ci napisac nie mogli

ale to trzeba czytac co sie dostaje