Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $dbh; $dbh = CreateObject OLE "ADODB.Connection" or die "Can't create connec +tion to DataBase: $!" unless $dbh; $dbh->Open("Driver={Microsoft Access Driver (*.mdb)};DBQ=db/textbookhu +b.mdb"); my $rs = CreateObject OLE "ADODB.Recordset" or die "can not create rec +ordset"; my $sqlstatement = "SELECT username, sessionID FROM user WHERE id=$id" +; # Prepare and execute SQL statement $rs = $dbh->Execute($sqlstatement);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Database (OLE) Hashrefs ?
by poj (Abbot) on Jan 12, 2003 at 12:27 UTC | |
|
Re: Database (OLE) Hashrefs ?
by theorbtwo (Prior) on Jan 12, 2003 at 08:16 UTC | |
|
Re: Database (OLE) Hashrefs ?
by CountZero (Bishop) on Jan 12, 2003 at 11:44 UTC |