两个数据表中的数据有一定的差距,如何把差异数据剔除出来? select * from 表1 where not exists(select * from 表2) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tb1 where not exists(select 1 from tb2 where tb1.col1=tb2.col1 and ...... and tb1.coln=tb2.coln)select * from tb2 where not exists(select 1 from tb1 where tb2.col1=tb1.col1 and ...... and tb2.coln=tb1.coln) 邀邹老大看看:http://community.csdn.net/Expert/topic/3846/3846731.xml?temp=4.327029E-02 select * from tablename1 where not exists(select * from tablename2) A:36000,B:34000select * from A where A.id not in(select id from B) 遇不明代码,求大侠们拔刀相助,这是个往数据库存储图片的代码 存储过程基础问题 关于case when then 的用法,能给我解释哈下面的代码吗? 一个表数据量过大,分成多个表存放数据但在同一个盘区(一个文件组)有意义么? 数据库同步实现兼快速替换问题 50分求从一个存储过程得到的大量数据怎样插入另一个表? 用一条语句来解决这个问题!!!???? 数据库恢复出错,大家帮我看看 关于SQL2005乱码的问题 begin tran 是原子操作吗?? 想做个根据参数出第查询记录条数的过程,调试总通不过,请大家指教。 100分求经典排序得SQL语句(在线等)
where not exists(select 1 from tb2 where tb1.col1=tb2.col1 and ...... and tb1.coln=tb2.coln)select * from tb2
where not exists(select 1 from tb1 where tb2.col1=tb1.col1 and ...... and tb2.coln=tb1.coln)
select * from A where A.id not in(select id from B)