Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Cursor in PL/SQL

Re: Cursor in PL/SQL

From: guy ruth hammond <grh_at_agency.com>
Date: Tue, 23 May 2000 22:33:22 +0100
Message-Id: <10507.106480@fatcity.com>


"Troiano, Paul (CAP, GEFA)" wrote:
>
> I am writing a PLS/SQL procedure that needs to deal with a table with 100
> columns. All 100 columns are needed and there can be anywhere from 5 to
> 10,000 records to be dealt with at a time. Is it better to create a cursor
> with all 100 fields and then deal with them? Or, is it better to create the
> cursor with just the primary key and use a SELECT ... INTO, for all 100
> fields, as needed?

Use the cursor to all fields. Oracle would open an implicit cursor anyway, so you aren't adding any additional processing. The SELECT INTO method is just more SQL to parse and execute, and doesn't offer any additional functionality.

Cheers,

g

-- 
guy ruth hammond <grh_at_agency.com> | Happiness is a loaded weapon, and
Technology Analysis & Consulting  |   a short cut is better by far.
07879607148 http://www.agency.com |     -- The Sisters of Mercy
Received on Tue May 23 2000 - 16:33:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US