terroirman has asked for the wisdom of the Perl Monks concerning the following question:
I've been looking all around without finding. Here's my question : is this possible to do a nested query with DBI/oracle ?
Here's my query :
SELECT TROUBLE_TICKET_NUM FROM (SELECT TROUBLE_TICKET_NUM FROM TICKETTABLE WHERE TROUBLE_TICKET_NUM > + '123456789' AND WORK_GROUP='abc' ORDER BY TROUBLE_TICKET_NUM ASC) WHERE ROWNUM <= 4
This is executed instantly in my Oracle client (toad). But in a script, that just hangs there forever. Basically, it doesn't get to the fetchall_arrayref statement.
$odstthandle = $dbttods->prepare($qry) or die $dbttods->errstr; $odstthandle->execute() or die $odstthandle->errstr; $billets = $odstthandle->fetchall_arrayref or die $odstthandle->errstr +;
Is that even possible to do ? If so any way to troubleshoot whats taking so long ? If not, any alternative than DBI ?
Thanks for your time !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI/Oracle Nested SELECT query
by erix (Prior) on Sep 01, 2015 at 05:47 UTC | |
|
Re: DBI/Oracle Nested SELECT query
by chilledham (Friar) on Aug 31, 2015 at 22:30 UTC | |
|
Re: DBI/Oracle Nested SELECT query
by pme (Monsignor) on Sep 01, 2015 at 03:05 UTC | |
|
Re: DBI/Oracle Nested SELECT query
by rdfield (Priest) on Sep 04, 2015 at 15:28 UTC |