Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

DBI parameterized database query with comma seperated list

by mg9176 (Initiate)
on Dec 18, 2015 at 18:06 UTC ( #1150706=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $sql = 'SELECT something FROM atable WHERE data in (?);';
    my $sth = $dbh->prepare($sql);
    my $rv = $sth->execute($data);
    
  2. or download this
    my $data = "1,2,3,4,5,6";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2021-08-04 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (41 votes). Check out past polls.

    Notices?