-- 当前用户所有表 注释 行数 select utc.table_name, utc.COMMENTS, ut.num_rows from user_tab_comments utc , user_tables ut where utc.table_name = ut.table_name -- 当前用户所有索引 组合索引 select distinct t.table_name, t.index_name, listagg(t.column_name, ',') within group(order by t.column_name ) over(partition by i.index_name,t.table_name) as a from user_ind_columns t, user_indexes i where t.index_name =i.index_name and t.table_name =i.table_name order by t.table_name, t.index_name
标签:index,name,查看,utc,索引,user,Oracle,table From: https://www.cnblogs.com/szc1998/p/17641088.html