I have a monitoring script which I am trying to better understand. One of the queries is built as follows:
[code=perl]
# delete any rows that expired more than a year ago
my $rows = $dbh->do("DELETE FROM table1 WHERE last_update < NOW() - INTERVAL 2 YEAR ");
[/code]
What is the NOW() function, and what Perl module does it come in? Is there more functions?
[code=perl]
# delete any rows that expired more than a year ago
my $rows = $dbh->do("DELETE FROM table1 WHERE last_update < NOW() - INTERVAL 2 YEAR ");
[/code]
What is the NOW() function, and what Perl module does it come in? Is there more functions?
Comment