Help for this page

Select Code to Download


  1. or download this
    sub insert {
      my $self = shift;
    ...
      my $sth = $dbh->prepare($sql) or die $dbh->errstr;
      $sth->execute(@$values) or die $sth->errstr;
    }
    
  2. or download this
      $obj->insert($tablename, \@column_names, \@values)