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?
[choroba]: Aristotle Not much has changed here since then, I guess :-)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-02-27 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.