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: Variabel declaration

RE: Variabel declaration

From: Jack C. Applewhite <japplewhite_at_inetprofit.com>
Date: Wed, 23 May 2001 12:20:13 -0700
Message-ID: <F001.0030C516.20010523115140@fatcity.com>

Roland,

Yes and for exactly the right reason.

In fact, I've found over the years that most of my PL/SQL variables end up being records of Table%RowType, since I nearly always need to use more than just one column of a table. Table%RowType records are particularly useful for input arguments to public cursors and return values for functions.

I'm sure someone will call using only a few of the fields in a Table%RowType record "inefficient", but I've not seen any kind of downside to it.

Jack



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----Original Message-----
Roland.Skoldblom_at_ica.se
Sent: Wednesday, May 23, 2001 10:19 AM
To: Multiple recipients of list ORACLE-L

Hallo you DBAs

Is it good to use this form when you declare variables in pl/sql? Then you dont have to be afraid of declaring variabloes into wrong datatype and size.

vOWNER_NO OWNER_INFO.OWNER_NO%TYPE;

Sincerely

Roland Sköldblom

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jack C. Applewhite INET: japplewhite_at_inetprofit.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed May 23 2001 - 14:20:13 CDT

Original text of this message

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