Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls