If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
The below script shows how to return values from PL/SQL block
variable a_var number
declare
var1 number;
begin
UPDATE EMPLOYEE
SET NAME = &1
WHERE EMP_ID= '&2';
var1 := SQL%ROWCOUNT;
IF var1 >= 1 THEN
:a_var := 0;
ELSE
:a_var := 1;
END IF;
end;
/
exit :a_var