删除某个用户的许可,同步许可 后确认苍穹端又出现了已删除的用户信息原创
金蝶云社区-云社区用户62941003
云社区用户62941003
0人赞赏了该文章 241次浏览 未经作者许可,禁止转载编辑于2022年10月20日 14:02:09

问题描述:删除某个用户的许可,同步许可 后确认苍穹端又出现了已删除的用户信息


原因:有一个已经被删除的用户影响了其他账号的上传

解决方式:删除脏数据


-- 备份需要修改的源数据

create table t_lic_userlicensegroupdif_20220929 like t_lic_userlicensegroupdif;

insert into t_lic_userlicensegroupdif_20220929 select * from t_lic_userlicensegroupdif;


-- 删除脏数据

delete from t_lic_userlicensegroupdif where fuserid not in (select fuserid from t_lic_userlicensegroup tlu)


赞 0