一、Oracle數據庫查看索引情況
1、查看索引情況(需重點關注LOB和分區索引)
Select Ui.Table_Name,
Ui.Index_Name,
Ui.Index_Type,
Ui.Uniqueness,
Ui.Partitioned,
Ui.Num_Rows
From User_Indexes Ui
Where Ui.Status = 'VALID'
Order By Ui.Table_Name, Ui.Index_Type, Ui.Index_Name
2、查看分區索引情況
Select *
From User_Part_Indexes
二、postgreSQL數據庫查看索引情況
select *
from "HR".pg_catalog.pg_indexes t
where t.schemaname = 'test'
order by t.tablename, t.indexname