- or download this
$sql = "SELECT NOW()";
$sth = $dbh->prepare($sql) or die "Error:" . $dbh->errstr . "\n";
$sth->execute() or die "Error:" . $sth->errstr . "\n";
while(my $row = $sth->fetchrow_hashref) { print Dumper($row); }
- or download this
Error:no such function: NOW(1) at dbdimp.c line 263
- or download this
$dbh->func( 'now', 0, sub { return time }, 'create_function' );