in reply to Re: How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
in thread How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
The usage of placeholders in the OP's code is secure and normal; maybe a little idiomatic but common. There's no programmatic difference between–
$sth = $dbh->prepare("something something ?, ?"); $sth->execute(@args);
–and–
$place = "?, ?"; $sth = $dbh->prepare("something something $place"); $sth->execute(@args);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
by chacham (Prior) on Aug 06, 2015 at 14:38 UTC | |
by Your Mother (Archbishop) on Aug 06, 2015 at 15:33 UTC | |
by chacham (Prior) on Aug 06, 2015 at 16:29 UTC | |
by taiko (Sexton) on Sep 04, 2015 at 22:09 UTC | |
by chacham (Prior) on Sep 08, 2015 at 12:58 UTC |