I don't understand the question. You don't pass any parameters to your query.
You couldn't even if you wanted to. Replaceable parameters only work for values. For identifiers such as table names, you need to use $dbh->quote_identifier.
my $sth = $dbh->prepare(" SELECT cols FROM ".$dbh->quote_identifier($tableName)." WHERE col=constant AND col2=constant "); $sth->execute(); while (my $row = $sth->fetchrow_hashref) { ... }
In reply to Re: basic dbi question
by ikegami
in thread basic dbi question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |