I noticed that DBI now has some shortcut methods, e.g. selectrow_hashref
which combines a prepare, execute and fetchrow in one function call.
Is there a similar method to combine a prepare and execute?
$sth = $dbh->prepare("SELECT ...");
$sth->execute;
e.g. something like:
$sth = $dbh->prepare_execute("SELECT ...");
at which point I could do $sth->rows, $sth->fetchrow_hashref, etc.
-Philip Mak ([EMAIL PROTECTED])
- RE: Shorthand for $dbh->prepare and $sth->execute? Philip Mak
- RE: Shorthand for $dbh->prepare and $sth->execut... Sterin, Ilya
- RE: Shorthand for $dbh->prepare and $sth->execut... Philip Mak
- RE: Shorthand for $dbh->prepare and $sth->execut... Steven Lembark
- RE: Shorthand for $dbh->prepare and $sth->execut... Philip Mak
- RE: Shorthand for $dbh->prepare and $sth->execut... Sterin, Ilya
- RE: Shorthand for $dbh->prepare and $sth->ex... Steven Lembark
- RE: Shorthand for $dbh->prepare and $sth->execut... Sterin, Ilya
- RE: Shorthand for $dbh->prepare and $sth->execut... Orlando Andico
- RE: Shorthand for $dbh->prepare and $sth->execut... Sterin, Ilya
