sherab has asked for the wisdom of the Perl Monks concerning the following question:
Later we are establishing our statement handle and executing code.... example...sub new_dbh { .... .... Establish the database handle Check other stuff, etc }
So far, so textbook.....$dbh = new_dbh({host=>'blablah'},{AutoCommit=>1}); $customer_handle="fred"; my $sth = $dbh->prepare(qq{select id from customer where handle=?}); $sth->execute($customer_handle);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI: Overloading statement handle
by moritz (Cardinal) on Nov 08, 2010 at 16:32 UTC | |
by sherab (Scribe) on Nov 08, 2010 at 19:56 UTC | |
|
Re: Perl DBI: Overloading statement handle
by kcott (Archbishop) on Nov 08, 2010 at 16:44 UTC | |
by sherab (Scribe) on Nov 08, 2010 at 19:06 UTC | |
by kcott (Archbishop) on Nov 08, 2010 at 21:42 UTC | |
by sherab (Scribe) on Nov 09, 2010 at 14:38 UTC | |
by sherab (Scribe) on Nov 08, 2010 at 20:35 UTC | |
|
Re: Perl DBI: Overloading statement handle
by lostjimmy (Chaplain) on Nov 08, 2010 at 16:41 UTC |