Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Skip problematic lines while populating database

by Corion (Patriarch)
on Aug 17, 2020 at 12:55 UTC ( [id://11120827]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sth_insert = $dbi->prepare(<<'SQL');
        INSERT INTO biochemical
    ...
    for my $row (@rows) {
        $sth_insert->execute( @$row );
    };
    
  2. or download this
    local $sth_insert->{RaiseError} = 0;
    for my $row (@rows) {
        $sth_insert->execute( @$row );
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found