In oracle, I want to create a delete sproc that returns an integer based on the outcome of the deletion.
this is what i have so far.
create or replace PROCEDURE Testing ( iKey IN VARCHAR2 ) AS BEGIN delete from MyTable WHERE TheKey = iKey; END Testing;
i’ve tried putting a RETURNS INTEGER in but the sproc won’t compile.
Use a function and the implicit SQL cursor to determine the number of rows deleted
That should work