|
@@ -27,11 +27,24 @@ begin
|
|
|
]';
|
|
]';
|
|
|
end if;
|
|
end if;
|
|
|
|
|
|
|
|
|
|
+ select count(*) into v_cnt
|
|
|
|
|
+ from user_tables
|
|
|
|
|
+ where table_name = 'BAK_20261105_GW_ACCOUNT_A';
|
|
|
|
|
+ if v_cnt = 0 then
|
|
|
|
|
+ execute immediate q'[
|
|
|
|
|
+ create table BAK_20261105_GW_ACCOUNT_A as
|
|
|
|
|
+ select * from GW where GWID = 102121
|
|
|
|
|
+ ]';
|
|
|
|
|
+ end if;
|
|
|
|
|
+
|
|
|
for r in (
|
|
for r in (
|
|
|
select GWID, FWC
|
|
select GWID, FWC
|
|
|
from GW
|
|
from GW
|
|
|
where JLZTM = 51
|
|
where JLZTM = 51
|
|
|
- and dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
|
|
|
|
|
|
|
+ and (
|
|
|
|
|
+ dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
|
|
|
|
|
+ or GWID = 102121
|
|
|
|
|
+ )
|
|
|
) loop
|
|
) loop
|
|
|
v_start := dbms_lob.instr(r.FWC, to_clob('"jw":['));
|
|
v_start := dbms_lob.instr(r.FWC, to_clob('"jw":['));
|
|
|
if v_start > 0 then
|
|
if v_start > 0 then
|
|
@@ -78,7 +91,10 @@ select GWID,
|
|
|
) USER_COUNT
|
|
) USER_COUNT
|
|
|
from GW
|
|
from GW
|
|
|
where JLZTM = 51
|
|
where JLZTM = 51
|
|
|
- and dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
|
|
|
|
|
|
|
+ and (
|
|
|
|
|
+ dbms_lob.instr(FWC, to_clob('bj_cxsy')) > 0
|
|
|
|
|
+ or GWID = 102121
|
|
|
|
|
+ )
|
|
|
order by GWID;
|
|
order by GWID;
|
|
|
|
|
|
|
|
exit
|
|
exit
|