【发布时间】:2015-03-27 01:29:52
【问题描述】:
oracle 是否优化 select 中的 select 语句?
例如简单查询
SELECT
test.a as a,
test.b as b,
(SELECT id from inner_table WHERE inner_table.code = 'active')
FROM test
假设表 test 有 1000 条记录,Oracle 会做什么?
对每条记录每次都执行选择?缓存了吗?
或者有办法使用它吗?
【问题讨论】: