Possible Duplicate:
Number of rows affected by an UPDATE in PL/SQL
CREATE PROCEDURE P_Update(in_termid IN VARCHAR2,StmntType IN VARCHAR2)
AS
BEGIN
IF StmntType = 'UpdateCS'
BEGIN
update OP_TTER_MAPPING set TXN_STATUS = 'N' where TERMINAL_ID = in_termid;
END
Else If StmntType = 'UpdateHS'
BEGIN
update OP_TTERMINALMASTER set TXN_STATUS = 'N' where TERMINAL_ID = in_termid;
END
end P_UpdateTIDStatus;
In the above procedure if the UPDATE is success i want to know it is successful or failure, how to do that, i should get some acknowledgement, how to modify the above proc to get acknowledgement?
can i assign like this set TXN_STATUS = 'N' in procedure?
Is this the correct way
IF StmntType = 'UpdateCS'
can i compare like this, if its correct v are going to create the procedure in backend and im going to execute from frontend, how ill i know what the "StmntType " are
Thanks in advance.