Help for this page

Select Code to Download


  1. or download this
    foreach my $record (@filedata) {
        my $sql = "INSERT INTO $table VALUES ($record)";
        my $rows = $dbh->do($sql);
    }
    
  2. or download this
    foreach my $record (@filedata) {
        my @fields = split /,/, $record;
    ...
        my $rows = $sth->execute(@fields);
        $sth->finish();
    }