Jul
07
2009

Select all from the Past Month in MYSQL

Useful bit of SQL for selecting all records from the past month:

WHERE DATE_SUB(curdate(),interval 1 MONTH) <= timestamp AND

Written by Pete in: Uncategorized |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes