Oracle下查看索引的语句

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);

猜你喜欢

转载自www.cnblogs.com/hnsongbiao/p/10325805.html
今日推荐