I am getting the eror "PL/SQL Statement ignored"
on a stored procedure.I can't see any syntax errors. the error is pointed at the line after "IS"
Here's the code:
CREATE OR REPLACE PROCEDURE proc(
id IN NUMBER /*NUMBER(10)*/, total_amt_due_in IN NUMBER /*NUMBER(5,2)*/,
overnight_status IN CHAR /*CHAR(1)*/,
total_records_in IN NUMBER /*NUMBER(7)*/
)
IS
BEGIN
If (overnight_status = '1') then
overnight_status := 'Y';
else
overnight_status := 'N';
end if;
INSERT INTO tbl
(
id,
res_id,
total_amt_due,
overnight_status,
total_records
)
VALUES(
seq_id.nextval,
res_id_in,
total_amt_due_in,
overnight_status,
total_records_in
);
END;
/
Any help appreciated
on a stored procedure.I can't see any syntax errors. the error is pointed at the line after "IS"
Here's the code:
CREATE OR REPLACE PROCEDURE proc(
id IN NUMBER /*NUMBER(10)*/, total_amt_due_in IN NUMBER /*NUMBER(5,2)*/,
overnight_status IN CHAR /*CHAR(1)*/,
total_records_in IN NUMBER /*NUMBER(7)*/
)
IS
BEGIN
If (overnight_status = '1') then
overnight_status := 'Y';
else
overnight_status := 'N';
end if;
INSERT INTO tbl
(
id,
res_id,
total_amt_due,
overnight_status,
total_records
)
VALUES(
seq_id.nextval,
res_id_in,
total_amt_due_in,
overnight_status,
total_records_in
);
END;
/
Any help appreciated