Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Variabel declaration
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
-----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-LReceived on Wed May 23 2001 - 14:20:13 CDT
(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).
![]() |
![]() |