tomazos has asked for the wisdom of the Perl Monks concerning the following question:
The way I know how to do it at the moment is:
$sth = $dbh->prepare('select current_date()'); $sth->execute(); my ($current_date) = $sth->fetchrow_array(); $sth->finish();
Is there a function in DBI which would do the equivilant thing but like this:
my $current_date = $dbh->THEFUNCTION('select current_date()');
Is there an existing function like THEFUNCTION above in DBI? If not, what is the closest you can come? Am I missing something?
Cheers. -Andrew
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Minimal DBI?
by VSarkiss (Monsignor) on Apr 11, 2002 at 18:23 UTC | |
by tomazos (Deacon) on Apr 11, 2002 at 18:42 UTC | |
|
Re: Minimal DBI?
by Juerd (Abbot) on Apr 11, 2002 at 18:30 UTC | |
by belg4mit (Prior) on Apr 11, 2002 at 19:14 UTC |