in reply to How to link Ms-access data's in perl
#Windows-based Perl/DBI/MS Access example use DBI; #open connection to Access database $dbh = DBI->connect('dbi:ODBC:Clients'); #prepare and execute SQL statement #note that the query ClientName etc below is just the example # suit it with your own requirement $sqlstatement="SELECT ClientName,ClientEmail FROM billing"; $sth = $dbh->prepare($sqlstatement); $sth->execute || die "Could not execute SQL statement ... maybe invalid?"; #output database results while (@row=$sth->fetchrow_array) { print "@row\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to link Ms-access data's in perl
by ikegami (Patriarch) on Apr 05, 2005 at 05:41 UTC |