Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL Newbie: Porting the SUSPEND statement from other RDBMS's to Oracle
In several RDBMS's there is a SUSPEND statement that suspends execution
of a select stored proc, passes control to the caller along with the
values of the
OUT parameters, and resumes execution of the sp with the next fetch.
For example:
CREATE PROCEDURE test
RETURNS (retval INTEGER) <-------- the OUT parameter as defined
in Interbase
AS
BEGIN
FOR SELECT aFIELD FROM aTABLE
INTO :retval
DO
BEGIN
SUSPEND; <--------- here the control is passed to the caller
statement
along with the value of the :retvalparameter.
How can I do this in PL/SQL? Received on Sun Feb 14 1999 - 13:00:12 CST
![]() |
![]() |