in reply to perl dbi, prepare function using place holder
If you want to change tables, you have to "prepare" again with that specific table name.my $table_name = 'Table'; $sth = $dbh->prepare("INSERT INTO $table_name (ip,bsid,firmware) VALUE +S (?, ?, ?)"); $sth->execute($ip,$bsid,$firmware);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl dbi, prepare function using place holder
by chacham (Prior) on Aug 25, 2016 at 17:01 UTC | |
by Marshall (Canon) on Aug 25, 2016 at 17:23 UTC | |
by chacham (Prior) on Aug 26, 2016 at 20:16 UTC | |
by leostereo (Beadle) on Sep 02, 2016 at 14:25 UTC |