Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: A more elegant solution?

by Cirollo (Friar)
on Jun 05, 2001 at 02:07 UTC ( #85630=note: print w/ replies, xml ) Need Help??


in reply to Re: A more elegant solution?
in thread A more elegant solution?

D'oh. *slaps forehead*

Another classic case of focusing on one solution, so the other one that is staring you in the face gets ignored.

But, these hashes will not have a fixed number of elements; do I need to put a string of ?, ?, ... , ? in my statement and then just pass a list through execute? Or is there some placeholder that says "put a list here"?


Comment on Re: Re: A more elegant solution?
Download Code
Re: Re: Re: A more elegant solution?
by runrig (Abbot) on Aug 20, 2001 at 02:17 UTC
    But, these hashes will not have a fixed number of elements; do I need to put a string of ?, ?, ... , ? in my statement and then just pass a list through execute? Or is there some placeholder that says "put a list here"?

    Well, if there is not an unholy number of combinations of columns, then this is not a bad solution. If there is going to be a large number of 'different' statements prepared, then this is still ok, but I would just use prepare() instead of prepare_cached.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-07-03 17:20 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 (54 votes), past polls