Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: What are placeholders in DBI, and why would I want to use them?

by btrott (Parson)
on Apr 14, 2000 at 01:59 UTC ( #7556=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare(<<SQL);
    insert into my_table (id, name) values ('15', 'Foo')
    SQL
    
  2. or download this
    my $sth = $dbh->prepare(<<SQL);
    insert into my_table (id, name) values (?, ?)
    SQL
    
  3. or download this
    $sth->execute('15', 'Foo');
    
  4. or download this
    my $sth = $dbh->prepare_cached(<<SQL);
    insert into my_table (id, name) values (?, ?)
    SQL
    $sth->execute('15', 'Foo');
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-08-01 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (16 votes). Check out past polls.

    Notices?