/ Published in: MySQL
Display records older than one week.
Expand |
Embed | Plain Text
SELECT * FROM tablename WHERE tablename.tabledatefield < DATE_SUB( NOW(), INTERVAL 7 DAY )
You need to login to post a comment.
galofre on 06/24/10
2 people have marked this snippet as a favorite
Display records older than one week.
SELECT * FROM tablename WHERE tablename.tabledatefield < DATE_SUB( NOW(), INTERVAL 7 DAY )
You need to login to post a comment.