Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to link Ms-access data's in perl

by gube (Parson)
on Apr 05, 2005 at 07:23 UTC ( [id://444882]=note: print w/replies, xml ) Need Help??


in reply to How to link Ms-access data's in perl

Hi try this,

Before doing this install DBD-ODBC module in your system. Add database in ODBC before run this perl code

use DBI; # MAPDSN is database name $dbh = DBI->connect('dbi:ODBC:MAPDSN'); #pii is table name $access="SELECT aid,piino FROM pii"; $sth = $dbh->prepare($access); $sth->execute(); while (@row=$sth->fetchrow_array) { $pii = $row[0]; $pii1 = $row[1]; $pii{$pii}=$pii1; }

Regards,
Gube.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://444882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found