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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM