in reply to Need help to correct a simple script
foreach my $count (1..$tables) { my $sql =<<EOF; .... EOF die ("Failed to insert row: " . DBI->errstr) if (!($dbh->do ($sql) +)); }
Unfortunately you can't prepare and execute this statement with bound variables, as the table name is formed from one of the variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help to correct a simple script
by terrykhatri531 (Novice) on Jan 07, 2013 at 18:36 UTC |