Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Replacing DBI->do()

by rnewsham (Curate)
on Apr 23, 2014 at 13:58 UTC ( #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
Node Status?
node history
Node Type: note [id://1083363]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2020-12-06 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?