Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

multiple value in procedure parameter

Ricky007Aug 27 2019 — edited Aug 28 2019

Hi experts

create table DEL_CUST

(

SNO NUMBER,

CUSTID NUMBER

);

INSERT INTO DEL_CUST VALUES(1,15978);

INSERT INTO DEL_CUST VALUES(2,63248);

INSERT INTO DEL_CUST VALUES(3,56248);

INSERT INTO DEL_CUST VALUES(4,87456);

INSERT INTO DEL_CUST VALUES(5,98745);

COMMIT;

Here I want to delete a multiple custid

if any one custid does't exist then i need to rllback complete without performing any activity.

In below procedure i can able delete only single value at time

please help to pass multiple value through procedure in parameter

create or replace procedure del_cust_sp

(p_custid varchar)

as

begin

delete from del_cust_spĀ  where CUSTID=p_custid;

commit;

end;

This post has been answered by BEDE on Aug 27 2019
Jump to Answer
Comments
Post Details
Added on Aug 27 2019
11 comments
5,749 views