in reply to mysql and postgresql gotchas and tips
Why use $dbh->quote when you can just bind the parameters?
my $sth = $dbh->prepare( "INSERT INTO table VALUES ( ?, ?, ?, ? +)" ); $sth->execute( 'a', 1234, undef, 't' ); ## samething for do
To me that looks much much cleaner than just embedding the parameters using quote()
I guess this thing about insert statements doean't bother me because PostgreSQL is the first real database that I had to deal with.... :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mysql and postgresql gotchas and tips
by ralphie (Friar) on Aug 03, 2001 at 15:24 UTC | |
|
Re: Re: mysql and postgresql gotchas and tips
by jepri (Parson) on Aug 03, 2001 at 20:48 UTC | |
by Aighearach (Initiate) on Aug 06, 2001 at 01:57 UTC | |
by jepri (Parson) on Aug 06, 2001 at 02:11 UTC |