in reply to Re: (Ovid) Re: How do you get Perl::DBI to do a desc table_name?
in thread How do you get Perl::DBI to do a desc table_name?
Just drop the TOP 1 from the SQL. I added that to prevent the DB from selecting all records and doing to much work. However, having the $sth->finish call at the end should minimize the overhead by merely finishing up the statement handle without fetching the subsequent rows.
Of course, Oracle should support some form of the TOP syntax, but I don't know Oracle.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?
by mpeppler (Vicar) on Mar 27, 2002 at 20:56 UTC | |
|
Re: (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?
by kleinbiker7 (Sexton) on Mar 27, 2002 at 18:49 UTC | |
by lestrrat (Deacon) on Mar 27, 2002 at 19:07 UTC | |
by rob_au (Abbot) on Mar 27, 2002 at 22:43 UTC | |
|
Re: (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?
by Rhose (Priest) on Mar 27, 2002 at 20:21 UTC |