Hi Everyone,
I need to create a stored procedure that summarizes info in a table. I want to specify the schema that the table resides in. I tried this code
create or replace procedure analyze_dept
AS
v_dept_record dept%ROWTYPE;
BEGIN
SELECT *
INTO v_dept_record
from Scott.dept;
END;
/
and received the error:
PLS-00201: identifier 'SCOTT.DEPT' must be declared
Where do I specify which schema I want the dept table to come from?
Thanks for your help!!
Marc Guinea pigs make the world a nicer place!
Piggydad30@hotmail.com
I need to create a stored procedure that summarizes info in a table. I want to specify the schema that the table resides in. I tried this code
create or replace procedure analyze_dept
AS
v_dept_record dept%ROWTYPE;
BEGIN
SELECT *
INTO v_dept_record
from Scott.dept;
END;
/
and received the error:
PLS-00201: identifier 'SCOTT.DEPT' must be declared
Where do I specify which schema I want the dept table to come from?
Thanks for your help!!
Marc Guinea pigs make the world a nicer place!
Piggydad30@hotmail.com