Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("
       UPDATE many_address
    ...
       chomp($street);
       $sth->execute($name,$add,$street);
    }
    
  2. or download this
    $rows_affected = $dbh->do("UPDATE your_table SET foo = foo + 1");
    
  3. or download this
    ...
    
    ...
       my $ret = $sth->execute($name,$add,$street);
       print "no update for $name\n" if $ret == 0;
    }