Re: How to delete 3 months old records in my database?
| From: | Karl-Arne Gjersøyen | Date: | Fri, 02 Aug 2013 12:02:10 +0000 |
| Subject: | Re: How to delete 3 months old records in my database? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321760@lists.php.net to get a copy of this message | ||
2013/8/2 Dušan Novaković <ndusan@gmail.com>
> $query = "DELECT FROM
__table_name__ WHERE
> __date__ BETWEEN NOW() -
> INTERVAL 3 MONTH AND NOW()"
>
This delete everything from now and 3months backwards. I want to store 3
months from now and delete OLDER than 3 months old records.
Karl