如何有效率的搜索第一个表里的ID字段在第二个表里没有的全部记录? select * from t1 awhere not exists(selec 1 from t2 b where a.id=b.id) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tableone awhere not exists(selec 1 from tabletwo b where a.id=b.id) 或者select * from t1 where id not in (select id from t2) 新手提问。1条SQL语句问题。请多多帮助! 求助,关于数据库联合查询的问题。 关于SQL2000与STDIO2005之间的数据库连接遇到的问题 安装sql server问题 请高手解决 Analysis Services 连接数据库问题,万分紧急!! 请问 表 字段设计问题 ? 非常焦急,在线等待!我的SQL竟然进不去了? 不能安装SQL server2000 在vfp里面可不可以得到一个文件夹里面的文件数目? 为什么我的触发器中的游标只走了一行就抱错了。提示:主键重复 求语句 数据回收有问题,收不上来。请各位大侠帮忙
where not exists(selec 1 from tabletwo b where a.id=b.id)
或者select * from t1 where id not in (select id from t2)