Vic*_*tor 2 oracle indexing partitioning
当我在oracle表上创建索引并且只指定列名和表名(基本上是默认索引)时,它是创建全局索引还是本地分区索引(即根据表分区对索引进行分区)?
create table T_Test
(
pk_test number(10),
val number(10)
)
partition by hash (val)
(
partition p1,
partition p2,
partition p3
);
insert into t_test values (1,3);
insert into t_test values (2,2);
insert into t_test values (3,5);
insert into t_test values (5,6);
insert into t_test values (6,7);
insert into t_test values (7,4);
commit;
create index ix_test on t_test(val);
select partitioned from user_indexes where index_name = 'IX_TEST';
>> NO
Run Code Online (Sandbox Code Playgroud)
因此,默认情况下,索引将创建为全局索引.
归档时间: |
|
查看次数: |
3002 次 |
最近记录: |