码迷,mamicode.com
首页 > 其他好文 > 详细

勾兑应收余额大于明细处理

时间:2015-06-24 16:41:29      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:时空

INSERT INTO mxysyf

    select  [djbh]

           ,[dj_sn]

           ,[spid]

           ,[rq]

           ,[dwbh]

           ,[fdbs]

           ,[dj_sort]

           ,‘否‘ as [jieqing]

           ,‘‘ as [hw]

           ,0 as [yisfje]

           ,[shl]

           ,[dj]

           ,[je]

           ,[shlv]

           ,[hshj]

           ,[hsje]

           ,[she]

           ,0 as [ml]

           ,[lshj]

           ,[lshje]

           ,[recnum]

           ,[xgdjbh]

           ,‘否‘ as [yishj] 

from mxysyf_his where dwbh in (select dwbh from mchk where danwbh in (‘XS0325‘,‘XS0454‘,‘XS0548‘,‘XS0596‘,‘XS0900‘))


delete mxysyf_his where dwbh in (select dwbh from mchk where danwbh in (‘XS0325‘,‘XS0454‘,‘XS0548‘,‘XS0596‘,‘XS0900‘))


勾兑应收余额大于明细处理

标签:时空

原文地址:http://bks2015.blog.51cto.com/9847303/1665029

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!