Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: How to Do multiples SQL Insert at one time?

by Juerd (Abbot)
on Jan 08, 2008 at 19:54 UTC ( #661162=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to Do multiples SQL Insert at one time?
in thread How to Do multiples SQL Insert at one time?

Alternatively, let someone else separate preparation and execution!

use DBIx::Simple; my $db = ...; while (<$log>) { $db->query('INSERT INTO foo VALUES (??)', split /:/); }
This prepares the query only once.

Juerd # { site => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://661162]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-12-09 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.