- https://shuvankar.com
- @sonu041
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE TABLE1 SET COL1 = 'XYZ' WHERE STATUS = 'N' | |
IF SQL%ROWCOUNT <> 5 THEN | |
l_msg := 'Update Failed'; | |
raise_application_error(-20101, l_msg); | |
ELSE | |
l_msg := 'Upadte Successfully' | |
dbms_output.put_line(l_msg); | |
COMMIT; | |
END IF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET SERVEROUTPUT ON SIZE 200000; | |
SET SCAN OFF; | |
WHENEVER SQLERROR EXIT; | |
DECLARE | |
l_env VARCHAR2(50) := ''; | |
l_count_act NUMBER := 0; | |
l_count_exp NUMBER := 0; | |
l_exp_upper_bound NUMBER := 0; | |
l_exp_lower_bound NUMBER := 0; |