D
Dominique Crétel
Hello,
I have a DBase files into a zip file.
There is only one directory (firstdir) in the root of mydb.zip file,
which contain another directory (seconddir). This last directory
contains a set od DBase files like this :
mydb.zip
+---firstdir
+---seconddir
+---aaa.dbf
+---bbb.dbf
+---ccc.dbf
+---and so on...
I am looking for something like this (if it's possible ?) :
-----------------
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect("DBI:XBase:./mydb.zip")
or die "error connecting to database :" . $DBI::errstr;
my $sth = $dbh->prepare("SELECT col1, col2 FROM table1")
or die "SQL error SQL:".$dbh->errstr();
$sth->execute or die "error while executing query:".$sth->errstr();
I have a DBase files into a zip file.
There is only one directory (firstdir) in the root of mydb.zip file,
which contain another directory (seconddir). This last directory
contains a set od DBase files like this :
mydb.zip
+---firstdir
+---seconddir
+---aaa.dbf
+---bbb.dbf
+---ccc.dbf
+---and so on...
I am looking for something like this (if it's possible ?) :
-----------------
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect("DBI:XBase:./mydb.zip")
or die "error connecting to database :" . $DBI::errstr;
my $sth = $dbh->prepare("SELECT col1, col2 FROM table1")
or die "SQL error SQL:".$dbh->errstr();
$sth->execute or die "error while executing query:".$sth->errstr();