Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Hidden Secrets of PERL

by jbrugger (Parson)
on Oct 12, 2006 at 05:33 UTC ( [id://577752]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sql = join(",", @allsearchterms);
    my $sth = $dbh->prepare("select * from table where value in($sql)");
    # You need to place qutes arount the sql-items, but you'll get the poi
    +nt here...
    $sth->execute();
    
  2. or download this
    
    my $qm = join ',', ('?') x @allsearchterms;
    my $sth = $dbh->prepare("select * from table where value in($qm)");
    $sth->execute(@allsearchterms);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found