Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2016-06-29 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (372 votes). Check out past polls.