04_rollback.sql 566 B

123456789101112131415161718192021222324252627
  1. set define off
  2. set echo on
  3. whenever sqlerror exit sql.sqlcode
  4. alter session set container=ORCLPDB;
  5. alter session set current_schema=PMS_TEST;
  6. delete from GRJJ
  7. where GRJJMBID = 10543
  8. and DXM = 'fjyrjc';
  9. update GW g
  10. set FWC = (select b.FWC
  11. from PMS_FJYRJC_MP_GW_BAK_20261119 b
  12. where b.GWID = g.GWID)
  13. where exists (select 1
  14. from PMS_FJYRJC_MP_GW_BAK_20261119 b
  15. where b.GWID = g.GWID);
  16. commit;
  17. select GRJJID,GRJJMBID,MC,DXM,FWM
  18. from GRJJ
  19. where GRJJMBID = 10543
  20. and DXM = 'fjyrjc';
  21. exit