select t1.* from t1
where not exists (select t2.* from t2
where
ISNULL(t1.[group_id],'') = ISNULL(t2.[group_id],'') and
ISNULL(t1.[sequence],'') = ISNULL(t2.[sequence],'') and
ISNULL(t1.[value],'') = ISNULL(t2.[value],'') and
ISNULL(t1.[phase],'') = ISNULL(t2.[phase],'')
)
SQL SERVER 两张结构一致的table比较
最新推荐文章于 2024-07-01 15:58:14 发布