Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 contemplating the Monastery: (6)
As of 2015-07-06 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls