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");


Comment on Re^2: DBI Format Question
Download Code

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 wandering the Monastery: (5)
As of 2014-09-16 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls