I am trying to setup following code to delete records from data base after 30 days:
DELETE * from table1 WHERE DateDiff("d", table1.Date, Date()) >30;
questions:
1. will this code do the job
2. If so where this should be placed. should it be place where record is inserted. please give an example.
Thanks
DELETE * from table1 WHERE DateDiff("d", table1.Date, Date()) >30;
questions:
1. will this code do the job
2. If so where this should be placed. should it be place where record is inserted. please give an example.
Thanks