求一条sql语句,2表查询 我有两张表tab1,tab2,都有一个name字段要出显示tab1的name字段的结果集,并且结果中不能包含tab2的name字段的值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tab1 where name not in (select name from tab2)select * from tab1 where not exists(select 1 from tab2 where name=tab1.name) select a.name from tab1 awhere a.name not in (select name from tab2) vc中利用ADO访问SQL数据库总是连接不上,是什么原因,请教 求sqlserver 触发器! 几个问题一起问,帮帮忙。 怎么把不需要的链接模糊删掉? sqlserver 2012 为毛没有代码智能提示功能啊? 如何删除重复记录?(明天要用特急) 讨论:数据库设计的疑惑 谁有 对image字段内容实现base64编码的sql语句 如何查看数据库内函数的源代码 sql查询效率问题 自己感觉很难的问题 求一个导数据的存储过程
select * from tab1 where not exists(select 1 from tab2 where name=tab1.name)
from tab1 a
where a.name not in (select name from tab2)