Oracle 10g - optimize WHERE IS NOT NULL

后端 未结 9 1833
长情又很酷
长情又很酷 2020-12-13 20:56

We have Oracle 10g and we need to query 1 table (no joins) and filter out rows where 1 of the columns is null. When we do this - WHERE OurColumn IS NOT NULL - we get a full

9条回答
  •  失恋的感觉
    2020-12-13 21:22

    It's also worth checking whether Oracle's statistics on the table are up to date. It may not know that a full table scan will be slower.

提交回复
热议问题