update 前缀.表@dblink_test t
set t.ftplj = 'http://ip:8080/index.php/MediaFrame/download?id=' ||
(select mediagroup
from 表
where identi =
substr(t.ftplj, instr(t.ftplj, '881\e:', -4) + 4))
where t.ftplj like '%\WaitForUpload%'
and exists
(select *
from 前缀.表@dblink_test t
where identi = substr(t.ftplj, instr(t.ftplj, '881\e:', -4) + 4))
and t.insert_time between
to_date('2022/07/01 00:00:01', 'yyyy-MM-dd hh24:mi:ss') and
to_date('2022/07/31 23:59:59', 'yyyy-MM-dd hh24:mi:ss')