EXPLAIN question
I created a table and index also created. But when I query by the index column, the EXPLAIN output as "SEQUENTIAL SCAN".create unique index non_disc_idx1
on yk_non_disclosure
(ds_rin);
Please see the attached Screen shot.
Thanks. update statistics for <tabname> 原帖由 juliey 于 2008-4-25 02:19 发表 http://bbs.chinaunix.net/images/common/back.gif
I created a table and index also created. But when I query by the index column, the EXPLAIN output as "SEQUENTIAL SCAN".
create unique index non_disc_idx1
on yk_non_disclosure
(ds_rin);
...
there are many ways to resolve this problem:
1,set OPTCOMPIND = 0
2,select {+ index(tabname) } from table tabname ....
3,update statistics
....
页:
[1]