表A有字段id
select /*+ first_rows*/ 表A.id from 表A
where id= decode('', '', id, '')
照道理应该输出表A的所有记录,实际上一条都没输出(没查到记录)
但是如果改为如下sql
select 表A.id from 表A
where id= decode('', '', id, '')
则输出所有记录
first_rows影响decode函数吗?为什么?
表A有字段id
select /*+ first_rows*/ 表A.id from 表A
where id= decode('', '', id, '')
照道理应该输出表A的所有记录,实际上一条都没输出(没查到记录)
但是如果改为如下sql
select 表A.id from 表A
where id= decode('', '', id, '')
则输出所有记录
first_rows影响decode函数吗?为什么?