Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> %TYPE question
Hello,
I am trying to use the %TYPE function but it does not always seem to
work consistently.
I have schema that holds at least two tables (table1 and table2). I log in under the schema name.
When I reference the table1 in Forms (dev/2000) for datatype assignment (e.g. table1.col1%TYPE) everything is fine.When I do the same thing for table2 (I triple checked the spelling), I receive the error "subprogram or cursor 'TABLE2' reference is out of scope"
When I change the assignment for table2 from table2.col1%TYPE to schema.table2.col1%TYPE my forms compiles properly.
What is going on and what does this error actually mean?
Both tables have a public synonyms on them, in case this matters.
Thanks for your help,
Pieter
Received on Fri Jul 05 2002 - 13:49:13 CDT