Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. BEGIN DBMS_OUTPUT.put_line (1);
  2. BEGIN DBMS_OUTPUT.put_line (1);
  3. DELETE FROM CMC_BSDL_DETAILS WHERE PDBC_PFX='CW6F';
  4. COMMIT;IF SQL%ROWCOUNT = 0 THEN RAISE_APPLICATION_ERROR (-20101, 'No
  5. record inserted');
  6. END IF;
  7.  
  8.  
  9. delete from CMC_BSTX_SUM_TEXT where PDBC_PFX='CW6F';
  10. COMMIT;IF SQL%ROWCOUNT = 0 THEN RAISE_APPLICATION_ERROR (-20101, 'No
  11. record inserted');
  12. END IF;
  13.  
  14.  
  15. insert into CMC_BSDL_DETAILS(PDBC_PFX, BSDL_TYPE,
  16. BSDL_NTWK_IND, BSDL_EFF_DT, BSDL_COPAY_AMT, BSDL_DEDE_AMT,
  17. BSDL_COIN_PCT, BSDL_LTLT_AMT, BSDL_TERM_DT, BSDL_LT_TYPE,
  18. BSDL_LT_PERIOD, BSDL_LT_COUNTER, BSDL_TIER, BSDL_COV_IND,
  19. BSDL_STOPLOSS_AMT, BSDL_STOPLOSS_TYPE, BSDL_BEG_MMDD,
  20. BSDL_USER_LABEL1, BSDL_USER_DATA1, BSDL_USER_LABEL2,
  21. BSDL_USER_DATA2, BSDL_USER_LABEL3, BSDL_USER_DATA3,
  22. BSDL_USER_LABEL4, BSDL_USER_DATA4, BSDL_USER_LABEL5,
  23. BSDL_USER_DATA5, BSDL_USER_LABEL6, BSDL_USER_DATA6,
  24. BSDL_LOCK_TOKEN, ATXR_SOURCE_ID, SYS_LAST_UPD_DTM, SYS_USUS_ID,
  25. SYS_DBUSER_ID) values ('CW6F','AAMB','A',to_timestamp('01/01/1990
  26. 00:00:00','MM/DD/YYYY
  27. HH24:MI:SS.FF'),250.00,0.00,0.00,0.00,to_timestamp('12/31/9999
  28. 00:00:00','MM/DD/YYYY HH24:MI:SS.FF'),' ',' ',' ',0,' ',0.00,'
  29. ',0,' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','
  30. ',1,to_timestamp('01/01/1753 00:00:00','MM/DD/YYYY
  31. HH24:MI:SS.FF'),to_timestamp('08/17/2017 16:15:10','MM/DD/YYYY
  32. HH24:MI:SS.FF'),'Translator','Translator');
  33. COMMIT;
  34.  
  35. END; Exception WHEN OTHERS THEN ROLLBACK; END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement