Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to store $dbh in a variable like$dbiConn = DBI->connect( "dbi:Oracle:$ORACLE_SID" , "$ORACLE_USER" , "$ORACLE_PASS" ) || die "Connection failure.\n$!\n$DBI::errstr\n$ORACLE_S +ID, $ORACLE_USER, $ORACLE_PASS";
Thanks$dbhVar = $dbh; my $qryDbi = $dbiVar->prepare("some query");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: storing database handle object in a variable
by kyle (Abbot) on Dec 09, 2009 at 15:25 UTC | |
|
Re: storing database handle object in a variable
by apl (Monsignor) on Dec 09, 2009 at 12:06 UTC | |
|
Re: storing database handle object in a variable
by virtualsue (Vicar) on Dec 09, 2009 at 10:49 UTC | |
by chilukuri_perl (Novice) on Dec 09, 2009 at 10:57 UTC | |
by Gangabass (Vicar) on Dec 09, 2009 at 11:28 UTC | |
by scorpio17 (Canon) on Dec 09, 2009 at 14:56 UTC | |
|
Re: storing database handle object in a variable
by pajout (Curate) on Dec 09, 2009 at 12:45 UTC |