Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 musing on the Monastery: (2)
As of 2017-08-18 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (294 votes). Check out past polls.

    Notices?