doudou618

oracle 根据一个表更新另一个表内容

declare
cursor c_col is select * from xtgl_jgmcbm where substr(v_jgbm,0,2)in(\'41\');--v_sjbm in( select distinct substr(v_zjhm_mq,0,6) from etbj_fmdj where length(v_dzpath)=7 and substr(v_zjhm_mq,0,2)=\'45\' );
begin
for r_col in c_col loop
update etbj_fmdj set v_dzpath=r_col.v_jgbm where v_xzdz like \'%\'||r_col.v_dz||\'%\' and length(v_dzpath)=7 ;
end loop;
end;

发表于 2017-09-12 18:18  骚年轻狂  阅读(472)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-10-20
  • 2021-11-04
  • 2021-10-20
  • 2021-12-03
  • 2021-10-20
  • 2021-10-30
  • 2021-10-20
  • 2021-10-20
猜你喜欢
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
  • 2021-10-20
相关资源
相似解决方案