Hey fellow programmers,
Quick question. For some reason I have this belief in my head that you can write a constraint(i believe) that will automatically delete expired records whenever a record expires. Supposedly the database will run the constraint everyday or routinely and the constraint will specify which records have expired by comparing the record's date field with the current date.
I tried googling for this but I can't find anything? Am i pulling this idea out of my ass? Or is it possible? I'm using a MySQL database by the way.
THANKS! =)
Quick question. For some reason I have this belief in my head that you can write a constraint(i believe) that will automatically delete expired records whenever a record expires. Supposedly the database will run the constraint everyday or routinely and the constraint will specify which records have expired by comparing the record's date field with the current date.
I tried googling for this but I can't find anything? Am i pulling this idea out of my ass? Or is it possible? I'm using a MySQL database by the way.
THANKS! =)