Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: DBI select IN Array

by dsheroh (Prior)
on Feb 21, 2019 at 08:28 UTC ( #1230283=note: print w/replies, xml ) Need Help??


in reply to DBI select IN Array

Your original code (using the x operator instead of map) also works just fine if you move the join outside of the quotes:
my $ID = $dbh->selectall_arrayref("SELECT table FROM tags WHERE tag IN + " . join(', ', ('?') x @tagList));

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-05-27 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?