我有一个数据库是8.17的,上面有一个分区表T,有pk(a,b),建立了一个local index idx_t,表格以a来分区
在一个查询语句中
select T.a,b,c from T,V
where T.a = V.a and b = 'eee'
使用这条命令时,使用的执行计划显示:
window child pushed rank
hash join
partition hash all
index fast full scan u_t
table access full
当使用
select T.a,b,c from T
where T.a = 'ssss' and b = 'eee'
查询时,使用的执行计划显示:
window sort pushed rank
hash join
index range scan u_t