| 12345678910111213141516171819202122232425 |
- set define off
- set echo on
- whenever sqlerror exit sql.sqlcode
- alter session set container=ORCLPDB;
- alter session set current_schema=PMS_TEST;
- begin
- delete from GRJJ
- where GRJJID in (select GRJJID from PMS_FJYRJC_CSSG1_CREATED_20261119
- where GRJJID is not null);
- update QZ q
- set FWC = (select b.FWC from PMS_FJYRJC_CSSG1_QZ_BAK_20261119 b
- where b.QZID=q.QZID)
- where exists (select 1 from PMS_FJYRJC_CSSG1_QZ_BAK_20261119 b
- where b.QZID=q.QZID);
- delete from PMS_FJYRJC_CSSG1_CREATED_20261119;
- commit;
- dbms_output.put_line('FJYRJC_CSSG1_TEST_ROLLBACK_OK');
- end;
- /
- exit
|