天天看點

oracle資料庫給表加索引

12.建立索引
create index 索引名稱 on 表名 (字段名稱);
13.删除索引
drop index 索引名; 
14.建立組合索引
create index 索引名 on 表名(列名1,,列名2);
15.在資料庫中查找表名
select * from user_tables where  table_name like 'tablename%';
16.檢視該表的所有索引
select * from all_indexes where table_name = 'tablename';
17.檢視該表的所有索引列
select* from all_ind_columns where table_name = 'tablename';