求2张表的差集,这个sql怎么写? 试试这个:select *from awhere not exists(select 1 from b where a.id = b.id) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 上面的主要是通过a和b表的关联字段来判断的。如果是多个字段,那么可以改为:select *from awhere not exists(select 1 from b where a.col1 = b.col1 and a.col2 = b.col2 and a.col3 = b.col3) 请问在导入过程中,没有设置自增列,导入成功后如何设置自增列? 这样的记录要如何排序? 简单的统计问题 登录一次,全网通行的表怎么设计。 重复行删除? 急急急,在线等你!! 怎样设置不能查询表的某个字段? sql server 2000数据库急涨,有没有什么办法? sqlserver的查询语句中,any和all有什么区别? C/S结构开发进销存软件。远程连接数据库时能否直接使用数据库服务器IP地址连接该SQL7.0服务器?该连接语句该如何写? 求一sql 两张表针对某一字段判重的SQL疑问
from a
where not exists(select 1 from b
where a.col1 = b.col1 and
a.col2 = b.col2 and
a.col3 = b.col3)