Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Replacing DBI->do()

by rnewsham (Curate)
on Apr 23, 2014 at 13:58 UTC ( [id://1083363]=note: print w/replies, xml ) Need Help??


in reply to Replacing DBI->do()

Here is an example of how I might have written that. Note the use of placeholders and that null is null and not the string 'null'.

my $id = $dbh->do("INSERT INTO person (id, first_name, last_name ) val +ues ( null, ?, ? )", undef, $first, $last);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found