Oracle批量更新

Oracle批量更新案例:

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')

你可能感兴趣的:(Oracle,oracle,数据库,sql)