How is it possible to have the result of an sql query saved as another sql query, so that somewhere down the line , if a delete is made, it could be reverted back to the old data?
I was looking into making a system call. Something like this
system (mysql -uuser-ppassword -Ddatabase < select.sql > backup.sql
where select.sql is the intial query, and backup.sql is the final query. When i execute it, just get a datadump in backup.sql
Please Help