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

DBI parameterized database query with comma seperated list

by mg9176 (Initiate)
on Dec 18, 2015 at 18:06 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found