awohld has asked for the wisdom of the Perl Monks concerning the following question:
When I look in the book "Programming the Perl DBI" it says taht DBD::CSV doesn't support the :1 placeholder style.my $sth = $dbh->prepare("SELECT ID, FRAMEID FROM SECT WHERE SITEID = ? + AND OFFSET = ?") or die "Can't prepare SQL statement: $DBI::errstr\n"; $sth->execute("49","2") or die "Can't execute SQL statement: $DBI::errstr\n";
my $sth = $dbh->prepare("SELECT ID, FRAMEID FROM SECT WHERE SITEID = 4 +9 AND OFFSET = 2") or die "Can't prepare SQL statement: $DBI::errstr\n"; $sth->execute() or die "Can't execute SQL statement: $DBI::errstr\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::CSV :1 Syntax Placeholder
by jZed (Prior) on Sep 26, 2005 at 18:17 UTC | |
by awohld (Hermit) on Sep 26, 2005 at 18:21 UTC | |
by jZed (Prior) on Sep 26, 2005 at 18:22 UTC | |
by awohld (Hermit) on Sep 26, 2005 at 18:28 UTC | |
|
Re: DBD::CSV :1 Syntax Placeholder
by nedals (Deacon) on Sep 27, 2005 at 00:31 UTC | |
by awohld (Hermit) on Sep 27, 2005 at 07:08 UTC |