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

Re: sql select with array

by jeroenes (Priest)
on Oct 22, 2001 at 13:29 UTC ( #120476=note: print w/ replies, xml ) Need Help??


in reply to sql select with array

In general "@array" concatenates the items in the array in to a string without any separator (but see perlvar). In the case of SQL, you'd probably like comma's between your items (see join):

...._arrayref( "select ". join( ', ', @selector) . " from people .... "
Jeroen


Comment on Re: sql select with array
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://120476]
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: (16)
As of 2015-07-06 18:05 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 (80 votes), past polls