Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare(
      'INSERT INTO table('
    ...
      . chop(join('', map {'?,'} keys %$c))
      . ")"
    );
    
  2. or download this
    my $placeholderstr = join('', map {'?,'} keys %$c);
    chop $placeholderstr;
    ...
    );
    
    $sth->execute(values %$c) or die $dbh->errstr;