急问:这个查询条件怎么写 select * from t1 where (a,b ,c) in (select a,b,c from t1 minus select a,b,c from t2); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有这种语法?我在SQL SERVER里没有见过。别的就不知道了 SQL SERVER我不知道,oracle绝对可以在SQL SERVER可以试试嘛,一种建议了 select t1.* from t1, t2 where t1.a <> t2.a and t1.b <> t2.b and t1.c <> t2.c MSSQLSERVER:select * from t1 where not exists(select * from t2 where t1.a=t2.a and t1.b=t2.b and t1.c=t2.c) 小鱼儿和supsuccess还有duckcn的方法都可以试试了。 select * from t1 where a not in(select a from t2) select * from t1 where not exists(select * from t2 where t1.a=t2.a and t1.b=t2.b and t1.c=t2.c) 更新关系表的信息 如何去掉某个字符 数据库有人恶意破坏,如何查出 SQL执行时间问题 存储过程中如何用sql代码判断一个select查询的返回为空呢? sql 纵向读成横向 从多条记录中选择最后一条,然后联表查询 如何设计这样数据库 请问如何对sysobject表加触发? 100分高手作答:通用MIS系统平台开发,适用于任何企业,与业务无关;!! SQl语句问题 数据库里数据量增大后,应用程序查询速度变慢
在SQL SERVER可以试试嘛,一种建议了
where not exists(select * from t2 where t1.a=t2.a and t1.b=t2.b and t1.c=t2.c)
where not exists(select * from t2 where t1.a=t2.a and t1.b=t2.b and t1.c=t2.c)