awohld has asked for the wisdom of the Perl Monks concerning the following question:
my $sth_IP = $dbh->prepare("SELECT IPADDRESS FROM AP WHERE ID=? ") or die "Can't prepare SQL statement: $DBI::errstr\n"; $sth_AP_IP->execute($BACKUPID) or die "Can't execute SQL statement: $DBI::errstr\n";
Is there anything different I should be doing to get two (2) placeholders to work?my $sth_Service_Node = $dbh->prepare("SELECT SNID, FRAMEID FROM ORG WH +ERE SITE=? AND ID=? AND OFFSET=?") or die "Can't prepare SQL statement: $DBI::errstr\n"; $sth_Service_Node->execute($SITEID, $ID, $OFF) or die "Can't execute SQL statement: $DBI::errstr\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::CSV SQL::Statement Placeholder Usage
by jZed (Prior) on Sep 27, 2005 at 17:55 UTC | |
by awohld (Hermit) on Sep 27, 2005 at 18:01 UTC | |
by jZed (Prior) on Sep 27, 2005 at 18:04 UTC | |
by awohld (Hermit) on Sep 27, 2005 at 18:44 UTC | |
by jZed (Prior) on Sep 27, 2005 at 18:55 UTC | |
by LanceDeeply (Chaplain) on Dec 04, 2005 at 16:24 UTC |