本文共 655 字,大约阅读时间需要 2 分钟。
对保险汇总数据的删除与修正补充
select * into fr_jh_rkhz20170210 from jh_rkhz where djbh in (select djbh from fr_spls_rk20170123)
select * into fr_cwk20170210 from cwk where djbh in (select djbh from fr_spls_rk20170123)
update cwk set je=-1208.55,she=-205.45,hsje=-1414,chbje=-1208.55 where djbh='JHCYMA00003021'
update jh_rkhz set je=-1208.55,she=-205.45,hsje=-1414,chbje=-1208.55 where djbh='JHCYMA00003021'
delete jh_rkhz where djbh in (select djbh from fr_spls_rk20170123) and djbh not in('JHCYMA00003021')
delete cwk where djbh in (select djbh from fr_spls_rk20170123) and djbh not in('JHCYMA00003021')
转载地址:http://ovnwl.baihongyu.com/