问个查询问题!!! 我现在需要查一张表的记录, 查询条件是另一张表的查询结果这个查询结果是多个请问我应该怎么写啊?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from b where name in(select name from a); select * from b where exists (select 'X' from a.name=b.name)这个效率高 支持楼上!exists的确比in执行效率高.尤其是not exists 比 not in执行效率更高. oracle执行计划问题 sybase与oracle的语法差别 select ename from emp 如何实现oracle开机自启动 在SqlServer触发器中, 'MSDASQL '分布式事务无法启动.....! 在线求助!!!需要高手解决关于查询的问题!!! 免费打工~!只为学习oracle............. 如何删除数据库(我使用向导建立了一个数据库 name ,如何删除它) oracle怎么那么难用?!! powerdesigner中pdm转sql的问题 oracle数据库表中某自段如何设置为自增字段呢? oracle存储过程问题
where exists (select 'X' from a.name=b.name)
这个效率高
exists的确比in执行效率高.
尤其是not exists 比 not in执行效率更高.