memerson
11-17-2009, 06:35 AM
Hello everyone :)
I'd like to know if it is possible to be able to remove dormant data from a table dynamically? I have a table in my database which is for reserved tickets that are on sale on a site, but they will only be needed in there for about 10 minutes (which is the reserve time before they go back on sale) and I'd like to be able to get those entries deleted as they would no longer be needed and would just take up space in the table.
The time will be logged in the table using the NOW() command plus 10 minutes, so I'm assuming that there is a way to query the database to check for expired times and then delete them?
If anyone knows of how and if this is possible, I would be grateful for any help.
Thanks
Michael
I'd like to know if it is possible to be able to remove dormant data from a table dynamically? I have a table in my database which is for reserved tickets that are on sale on a site, but they will only be needed in there for about 10 minutes (which is the reserve time before they go back on sale) and I'd like to be able to get those entries deleted as they would no longer be needed and would just take up space in the table.
The time will be logged in the table using the NOW() command plus 10 minutes, so I'm assuming that there is a way to query the database to check for expired times and then delete them?
If anyone knows of how and if this is possible, I would be grateful for any help.
Thanks
Michael