索引创建分两种,自动和手动
create table e as select * from emp;
select index_name from user_indexes where table_name='E'; --查看索引
alter table e add constraint uk_e_ename unique(ename);
*.手工创建
create index i_e_job on e (job);
create index i_e_2 on e (empno,job,sal);
select index_name,table_name,column_name from user_ind_columns;
*.删除索引:
drop index i_e_ename;
*.重建索引:
alter index i_e_ename rebuild;
alter index i_e_ename rebuild online;