Help for this page

Select Code to Download


  1. or download this
    my $q   = 'INSERT INTO some_table (data) VALUES (?)';
    my $sth = $dbh->prepare($q);
    ...
            # More code here...
        }
    }
    
  2. or download this
    while ( my $data = ... ) {
        $sth->execute( $data )
            or next;
    }