Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Reference to a component of composite variable
Hello,
In my PL/SQL code I have a composite variable of ROWTYPE and I try to access
the variable component using another variable, but I got an error:
"PLS-00302: component 'field_name' must be declared".
The code is:
declare
cursor c1 is select * from old;
old_row c1%ROWTYPE;
cursor c2 is select * from new;
new_row c2%ROWTYPE;
cursor c3 is select column_name from user_tab_columns where table_name =
'OLD';
field_name c3%ROWTYPE;
begin
dbms_output.enable;
open c1; open c2; open c3;
Thanks,
Gennady
Received on Mon May 08 2000 - 00:00:00 CDT
![]() |
![]() |