对保险汇总数据的删除与修正补充
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')
本文转自 qvodnet 51CTO博客,原文链接:http://blog.51cto.com/bks2015/1896772