Jump to content

Deleting rows from database automatically


svgmx5

Recommended Posts

i'm fairly new to using mysql/sql I've used it before with php and what now, but never really on its own.

 

Which is why i'm curious to know if there is a way to automatically delete rows from my table.

 

Say for example...

 

i have a table that holds comments, and i want that table to delete all comments that are older than 30 days from the current date. Instead of having to do it manually or through out a php script, i was wondering if i could do it through the database?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.