记录查询的问题 有两个表Table1:有A,B,C,AA,BB,CC等字段Table2:有A,B,C,DD,EE,FF等字段现在想根据A,B,C三个字段,找出在 Table1 但不在 Table2 的记录.谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from table1 awhere not exists(select 1 from table2 where A=a.A and B=a.B and C=a.C) ----------------------select * from Table1 where not exists(select A,B,C from Table2) ----------------------select * from Table1 where not exists(select A,B,C from Table2 TableT where A=Table1.A and B=Table1.B and C=Table1.C) 新手求教 select赋值、输出的一些问题 上千万至亿的表,sqll server查表记录总数能在十秒之内完成吗? 连接数据库的奇怪问题???? 关于xp_cmdshell DATEDIFF 计算天数时跨闰年时会出错误 请问有什么办法能使0+NULL=0吗? 修改表问题~ 100分求助 有高手用过OCI编程吗?急! 急,那里有中文版的SQL SERVER 下载 请教一个存储过程问题
select *
from table1 a
where not exists(select 1 from table2 where A=a.A and B=a.B and C=a.C)
select * from Table1 where not exists(select A,B,C from Table2)
select * from Table1 where not exists(select A,B,C from Table2 TableT where A=Table1.A and B=Table1.B and C=Table1.C)