Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to delete a database record after a certain time

DELETE messages WHERE date < DATE_SUB(NOW(), INTERVAL 7 DAY);
 
PREVIOUS NEXT
Tagged: #delete #database #record #time
ADD COMMENT
Topic
Name
9+1 =