in reply to DBD:Oracle::db prepared error
see the DBI documentation for more info.$sth = $dbv->prepare("INSERT INTO DL_SWIPE VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"); $sth->execute($row[0], $row[1], $row[2],$row[3],$row[4],$row[5],$row +[6],$row[7], $row[8],$row[9],$row[10],$row[11],$row[12],$row[13],$row[14],$row[15], +$row[16], $row[17],$row[18])"); # update: the line above can be changed to # $sth->execute(@row); # if @row has exactly 18 elements
Also, you'll be in a ton of sh*t if the order of your columns ever changes. It's probably a good idea to name your columns in that prepare() statement.
Joost
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBD:Oracle::db prepared error
by dragonchild (Archbishop) on Aug 20, 2004 at 00:49 UTC | |
by rdfield (Priest) on Aug 20, 2004 at 13:53 UTC | |
by dragonchild (Archbishop) on Aug 20, 2004 at 14:13 UTC | |
|
Re^2: DBD:Oracle::db prepared error
by freddo411 (Chaplain) on Aug 19, 2004 at 22:38 UTC |