I installed MySQL5.0.0 on my WinXP. Could someone tell me how do I do in order to automatically delete some rows in some table if certain rows' date is older than a given period of time, say, a month. (when I insert a row to the table, I use CURDATE() to get date).
Is this what I should put into a batch file?
mysql -u root db_name < delete.sql
where db_name is the database name and delete.sql is the file that I put sql statement in