Oracle 查看索引语句

2014-11-24 19:00:55 · 作者: · 浏览: 30

1. 查询一张表里面索引


select * from user_indexes where table_name=upper('bills');


2. 查询被索引字段


select * from user_ind_columns where index_name=('in_bills');


3. 给某一字段创建索引


create index in_bills on bills(account_id);