sub update { my $dbh = shift; my $stmt = "UPDATE tabellenname SET spalte1 = ?, spalte2 = ? WHERE spalte3 = ?"; my $rows = $dbh->do( $stmt, undef, @_[1..3] ); print "$rows Zeilen aktualisiert\n"; $dbh->commit; } my $dbh=DBI->connect("dbi:Oracle:$db_name",$db_user, $db_pw, \%attr) or die "Fehler $DBI::errstr"; update($dbh,$spalte1, $spalte2, $spalte3); $dbh=DBI->diconnect();