Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Seeking a non-quoted DBI placeholder

by arturo (Vicar)
on Jan 30, 2001 at 03:30 UTC ( [id://55130]=note: print w/replies, xml ) Need Help??


in reply to Seeking a non-quoted DBI placeholder

No, but you can always achieve the effect if you build the SQL query up as a string, e.g.

my $foo = 'bar'; my $sql = qq{SELECT * FROM table_name where $foo = ?}; my $sth = $dbh->prepare($sql); #... $sth->execute($foo);

Nice side effect: you have the SQL statement handy for debugging.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://55130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found