Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

DBI Deletes with placeholders

by AKSHUN (Novice)
on Feb 04, 2008 at 14:25 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found