Easy question for MySQL experts (i think)
Hi all. I have a question that should be super easy for mySQL experts....
let's say i have a table that has a field with a timestamp value (let's call it lastmodified). let's say i want to have my php script run a mysql query that does basically this (in pseudo code, i know it's not the right syntax) :
UPDATE table mytable SET status = "archived" WHERE lastmodified >= (60 days ago) AND status="complete"
in other words i want it to comb the records and find any record that has been complete and unmodified for at least 60 days, and set its status field to "completed"
