Stored procedure selecting from another scheme
- From: "reverland" <reverland@xxxxxxxxx>
- Date: 29 Sep 2005 07:30:40 -0700
When I try to run this stored procedure I get this error
PLS-00201: identifier schema2.table3 must be declared
I have looked everywhere and can't find the answer to this. I come from
a T/SQL background so I am at a loss as to why this doesn't work.
CREATE OR REPLACE procedure schema1.select_ssstudent
IS
begin
select a.*,
b.*,
c.sitename
from schema1.table1 a,
schema1.table2 b,
schema2.table3 c
where a.permnum=b.permnum
and substr(c.siteid,2,3) = trim(a.schoolnum)
order by a.schoolnum, UPPER(a.lastname), UPPER(a.firstname);
end;
.
- Follow-Ups:
- Re: Stored procedure selecting from another scheme
- From: Sybrand Bakker
- Re: Stored procedure selecting from another scheme
- Prev by Date: Re: Memory Upgrade for 10g
- Next by Date: Re: ORA-06413 when connecting Ora 9.2 from Win XP x64
- Previous by thread: How to uninstall Oracle 8i
- Next by thread: Re: Stored procedure selecting from another scheme
- Index(es):
Relevant Pages
|