MySQL: Get all MySQL rows that are one week old


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT DATE_SUB(date_time_column, INTERVAL 1 WEEK) FROM your_table;

URL: http://snippetsmania.com/snippet/MySQL/Get_all_MySQL_rows_that_are_one_week_old/96

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.