hgtmp has asked for the wisdom of the Perl Monks concerning the following question:
use DBI; my $dbf_dir = 'C:/Data/MoSes_Automatisierung/ws_test_orig/output/mcev/ +EEV12Q2/EEV_batchrun_1/'; my $tbl = 'EEV_DET_BATCHRUN_1~MAIN.DBF'; my $dbh = DBI->connect("DBI:XBase:".$dbf_dir) or die $DBI::errstr; # { my $sth = $dbh->prepare("select CAL_YEAR from $tbl") or die $dbh-> +errstr(); $sth->execute() or die $sth->errstr(); while (my @DATA = $sth->fetchrow_array()) { print join(',', @DATA), "\n"; } $sth->finish(); } $dbh->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with DBI, DBD::XBase
by stefbv (Priest) on Jan 19, 2013 at 09:48 UTC | |
by hgtmp (Initiate) on Jan 21, 2013 at 08:54 UTC | |
by stefbv (Priest) on Jan 21, 2013 at 10:52 UTC | |
by hgtmp (Initiate) on Jan 22, 2013 at 08:57 UTC | |
by stefbv (Priest) on Jan 22, 2013 at 16:08 UTC | |
|