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
[EMAIL PROTECTED]
(512)327-9068


-----Original Message-----
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to