Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
There's more than one way to do things
 
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 browsing the Monastery: (15)
As of 2014-04-21 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls