in reply to to_days(now())
produces:$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); }
Error:no such function: NOW(1) at dbdimp.c line 263
$dbh->func( 'now', 0, sub { return time }, 'create_function' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: to_days(now())
by Anonymous Monk on Jan 16, 2005 at 03:14 UTC |