Leser: 18
1 2 3 4 5 6 7 8 9 10 11 12 13 14
use DBI; #open connection to Access database $dbh = DBI->connect('dbi:ODBC:MSdabase01') or die "Fehler beim Connect: ",$DBI::errstr; #prepare and execute SQL statement $sqlstatement = 'SELECT * FROM Definitionen'; $sth = $dbh->prepare($sqlstatement); $sth->execute or die "Could not execute SQL statement ... maybe invalid?"; #output database results while (@row=$sth->fetchrow_array()){ print "@row\n"; }
$dbh->{LongTruncOk} = 0;
dbh->{LongReadLen} = 255; // oder größer