Is it safe to put an index on an Oracle Temporary Table?

前端 未结 6 2309
闹比i
闹比i 2021-02-19 22:41

I have read that one should not analyze a temp table, as it screws up the table statistics for others. What about an index? If I put an index on the table for the duration of

6条回答
  •  孤城傲影
    2021-02-19 23:06

    You can also use the dynamic sampling hint (10g):

    select /*+ DYNAMIC_SAMPLING (3) */ val from index_test where val = 1;

    See Ask Tom

提交回复
热议问题