Help for this page

Select Code to Download


  1. or download this
    my @records = ( ['value1', 'value2'], ...) ;
    
    my $sth = $dbh->prepare("INSERT INTO $table (field1, field2) VALUES (?
    +,?)");
    foreach my $valuesref (@records) { $sth->execute(@$valuesref) }