Typically it would look a little like this.
my $insert = "insert into table (vol) values (?)"; $dbh->do($insert, $values[8]);
Generally, the notion is that you never directly put variables into SQL statements.
In reply to Re^3: Need help escaping literal string
by muba
in thread Need help escaping literal string
by mrras25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |