gestione utenze

This commit is contained in:
cmaffio
2016-04-21 17:05:04 +02:00
parent e054385623
commit 209cbda2ba
5 changed files with 191 additions and 26 deletions

View File

@@ -136,6 +136,15 @@ sub aggiorna {
}
printf "Inizio attivita' pulizia %s\n",strftime('%d-%m-%Y %H:%M:%S',localtime) if ($messaggi);
$query = " DELETE FROM
proxy_dati
WHERE
data_new < DATE_SUB(NOW(), INTERVAL 1 DAY)
AND
data_destroy = '1970-01-01 00:00:00';
";
printf "Termine attivita' %s\n",strftime('%d-%m-%Y %H:%M:%S',localtime) if ($messaggi);
}