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;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.