select * from
(
select * from tableA order by colA
)
where rownum<10
colA原来不是null列,只有not null列才可能在索引中有记录,优化器没办法用索引了,改成not null,OK。
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/112417/viewspace-967886/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/112417/viewspace-967886/