Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: DBI Format Question

by ikegami (Pope)
on Aug 03, 2010 at 18:50 UTC ( #852718=note: print w/replies, xml ) Need Help??


in reply to Re: DBI Format Question
in thread DBI Format Question

You can't use placeholders because table names must be known when the query is prepared. That leaves using a quoting function.
my $q_table = $dbh->quote_identifier($table); $dbh->prepare("select stuff from $q_table");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852718]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-04-21 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?