Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: (FoxUni) Re: Good Programming is Better

by George_Sherston (Vicar)
on Jan 12, 2002 at 01:07 UTC ( #138138=note: print w/ replies, xml ) Need Help??


in reply to Re: Good Programming is Better
in thread Good Programming is Better

My rationale for using prepare is so I can use placeholders, so I can have arbitrary numbers of columns, and don't have to think about whether I need quotes. But if one can use placeholders with do, that'd be even sweeter.

George Sherston


Comment on Re: (FoxUni) Re: Good Programming is Better
Select or Download Code
Re: Re: (FoxUni) Re: Good Programming is Better
by gav^ (Curate) on Jan 12, 2002 at 01:12 UTC
    You can use placeholders with do. Just make sure you use undef as the first param.
    $dbh->do('insert into blah (?, ?, ?)', undef, $x, $y, $z);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-07-02 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls