Leser: 16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;
use DBI;
binmode(STDOUT , ":encoding(cp437)" );
my $user = 'klaus';
my $pass = 'dieter';
my $dns = 'Hamster';
my $driver = "DBI:ODBC:$dns";
my $dbh = DBI->connect($driver,$user,$pass, { RaiseError => 0, AutoCommit => 0 })|| die
"Database connection not made: $DBI::errstr";
my $sth = $dbh->prepare( "delete from hamster", undef);
$sth->execute();
$sth->finish();
$dbh->disconnect();
2011-01-11T17:31:00 andi84Der Thread kann gerne gelöscht werden.