select * from aa a,bb b where a.a=b.a and b.a like '%...%'
和select * from aa a where a.a exists (select a from bb b where a like '%...%' and a.a=b.a)
哪一句更有效率。
和select * from aa a where a.a exists (select a from bb b where a like '%...%' and a.a=b.a)
哪一句更有效率。
解决方案 »
- 在pl/sql中如何用语句查看procedure
- Oracle里面 逻辑运算符 NOT AND
- 关于Oracle的缓存命中率,恳求高人解答困惑几年的疑惑。。。。
- oracle pl/sql 查询结果的显示
- SELECT COUNT(*) FROM User_Tab_Columns WHERE upper(Table_Name) = upper('表名')的问题
- 问题急!各位大虾请进阿!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 有谁有C对应的oci涵数资料,或者了解的近来看看
- 关于Proc的问题
- 在存储过程中创建了临时表后,如何对临时表进行操作?
- 万能的程序员小哥哥们,求教oracle里面的sqlplus如何才能复制粘贴
- REHL 5 安装oracle 11g----如何解决?
- sql语句
具体效率没测试过。
select a.*,b.name from aa a,bb b where exists (select * from bb b where a like '%...%' and a.a=b.a)
DBA请进群QQ群:88039805
select * from aa a where exists (select a from bb b where a like '%...%' and a.a=b.a)