Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Is there a way to display the statement generated by DBD on execute()

by moritz (Cardinal)
on May 05, 2013 at 06:09 UTC ( #1032104=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @exclude_ids = (88, 99);
    my $sql = 'SELECT * FROM blog WHERE ID NOT IN (' . join(', ', ('?') x 
    +@exclude_ids) . ')';
    my $sth = $dbh->prepare($sql);
    $sth->execute(@exclude_ids);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032104]
help
Chatterbox?
and all is calm...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2016-12-05 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (89 votes). Check out past polls.