求sql语句 现在有两张表 都存的是手机号码 且都只有一个字段要把 第一张表 不包含 第二张表中 记录的 记录 取出来那位老大知道怎么做请把 完整的 语句 贴出来 谢谢 !!在线等. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from T1 where 列 not in (select 列 from T2)不是这样的吗? select * from table1where not exists (select 1 from table2where 手机号码=table1.手机号码) select 字段1 from 表1 where 字段1 not in (select 字段2 from 表2) select a.号码from tableA a left join tableB b on a.号码=b.号码where b.号码 is null sql 登陆问题 关于用SQL Server连接到Oracle的问题 求SQL学习资料 SQL Server2005建表语句如何改成2000的语句 【求助】查询速度贼满鸟。。。求高人相助!在线等! 高分求助。 我写的网页太慢了,该如何设计? SQL server中动态建立表 其中一个表中有ID标识,怎样添加另外一个表中内容? delete... exists 的写法 请问SQL中有没有语句可以设置返回的记录数?急!!! where name="sh" and id between 2 and 50 ;为什么不可以?该怎么写? 50分求一查询
不是这样的吗?
where not exists (
select 1 from table2
where 手机号码=table1.手机号码
)
select 字段2 from 表2)
from tableA a left join tableB b on a.号码=b.号码
where b.号码 is null