Has anyone successfully executed a stored procedure that inserted/updated a table and then selected rows from that table “Using Free Hand SQL”
Essentially two commands:
- Execute PL/SQL (inserts/updates table) 2. Select from table
As a test we did a
BEGIN
insert into apa_load.pom_mgt
(property_no,doi_no)
(select distinct pr_pr_no,‘00001’
from upstream.rvtpr
where pr_pr_no = ‘01277901’);
commit;
END;
select * from apa_load.pom_mgt;
This gave us an error. When we removed the “select * from apa_load.pom_mgt;”–it Inserted rows successfully, but we got the message “No Data to Fetch”.
Does this mean Oracle’s “Free Hand SQL” can’t handle multiple commands like MS SQL*Server or Sybase.
Any ideas.
Listserv Archives (BOB member since 2002-06-25)