修复流程单据关系表原创
金蝶云社区-云社区用户Z4cW8528
云社区用户Z4cW8528
2人赞赏了该文章 155次浏览 未经作者许可,禁止转载编辑于2020年05月25日 17:15:49

 T_WFR_ProcInstRef  有些记录frefid为空,将备份表中T_WFR_ProcInstRef_Temp 的frefid更新过来

update T_WFR_ProcInstRef  

set frefid=(select b.frefid  from T_WFR_ProcInstRef_Temp  b  where b.ftype=1 and  b.FPROCINSTID in ( select fprocinstid  from T_WFR_ProcInstRef  where ftype=1 and frefid is null))

 where ftype=1 and  frefid  is null


赞 2