您的位置:首页 > 其它

插入没有重复的数据

2008-01-23 19:49 211 查看
insert into a2 (c1,c2)
select c1,c2 from a
left join a2 on a.c1=a2.c1 and a.c2=a2.c2
where Deleted=1 and (a2.c1 is null and a2.c2 is null)

也就是两张表,没有重复的数据。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: