创建普通索引
create index indexname on username.tablename (column) tablespace tablespacename;
创建位图索引
create bitmap index indexname on username.tablename (column) tablespace tablespacename;
重建索引
alter index indexname tablespace tablespacename;
查询所有用户索引
select * from user_indexes;
查询所有索引
select index_name from dba_indexes;
本文介绍如何在数据库中创建普通索引和位图索引,并提供了重建索引的方法。此外,还详细说明了如何查询所有用户索引及系统中的所有索引。

被折叠的 条评论
为什么被折叠?



