oracle connectionby johnpat123 (Initiate)
|on Jun 01, 2012 at 17:41 UTC||Need Help??|
johnpat123 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I am trying to create a sub procedure which will connect to an oracle db and select some data. The issue is that the data it retrieves is different each time. Meaning the sql string changing based on the parameters passed into this procedure. so the following commented out 'while' line works, but it is hard coded. Is there a way to put a variavle in fetch whch can contain different variables each time?
$xxx = "$DBNAME,$USERNAME,$PROFILE";
#while (my ( $DBNAME,$USERNAME,$PROFILE )=$sth->fetchrow())
while (my ( '$xxx' )=$sth->fetchrow())