如何查询一表排除另一表存在的值 表aid name value5695 白老 253286 隐士 265814 别处 255813 rain 115823 rose 7表bpid name 5695 白老3286 隐士想要取得表A中value大于10,且这个id是不存在于表b中的。这个sql命令如何写(a.id同b.pid),我要的结果如下5814 别处 255813 rain 11 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from a where not exists(select 1 from b where pid=a.id) and a.value>10 版主,注意效率,not exists还是放到后面去好一点 select * from a where not exists(select 1 from b where pid=a.id) and a.value>10 select * from tawhere not exists(select 1 from tb where pid=ta.id) and ta.value>10 二表连接如何查询? 【【【突然脑袋卡住了 谁帮我清醒一下?】】】 着急,很简单,关于SQL Server的备份 怎么将SQL SERVER6.5的数据恢复到7.0或2000中? [求救]寻找最有效的SQL注入解决方案 如何使用日志文件恢复数据库,在线等!!急,急,急 100分求教:哪里有数据库管理方面的培训 分析一个sql语句 急!这个Update触发器为何不能触发? 求助 插入一张表数据中有需要从别的列截取 也有自己赋值的 帮我看一下这两条基本的查询语句有什么区别(Oracle数据库的) 求sql语句
*
from a
where not exists(select 1 from b where pid=a.id) and a.value>10
select * from a where not exists(select 1 from b where pid=a.id) and a.value>10
where not exists(select 1 from tb where pid=ta.id)
and ta.value>10