Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

DBI Deletes with placeholders

by AKSHUN (Novice)
on Feb 04, 2008 at 14:25 UTC ( #665968=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $deleteString = qq{
    delete from my_table
    where id = ?};
    
  2. or download this
    my $var = "12345";
    $dbh = DBI->connect
    ...
    
    $sth1 = $dbh->prepare($deleteString);
    $sth1->execute($var) or die "FAILED DELETION";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-08-12 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?