in reply to Deleting Old MySql Records With PERL
Furthermore, make sure that column `date` is of the right column type (DATE or DATETIME). Finally, I test my SQL using the mysql client; if it succeeds there, it should succeed in your Perl script.DELETE FROM table WHERE `date` < DATE_SUB(NOW(), INTERVAL 30 DAY);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deleting Old MySql Records With PERL
by Milti (Beadle) on Jul 14, 2016 at 16:00 UTC | |
by poj (Abbot) on Jul 14, 2016 at 19:22 UTC |