查看某表的索引信息:
select * from user_ind_columns where index_name=upper('&index_name')
查看某表的約束條件:
SQL>select constraint_name, constraint_type,search_condition, r_constraint_name
from user_constraints where table_name = upper('&table_name');
SQL>select c.constraint_name,c.constraint_type,cc.column_name
from user_constraints c,user_cons_columns cc
where c.owner = upper('&table_owner') and c.table_name = upper('&table_name')
and c.owner = cc.owner and c.constraint_name = cc.constraint_name
order by cc.position;
查看視圖的名稱:
SQL>select view_name from user_views;
posted on 2009-12-10 11:30
楓中玎玲 閱讀(500)
評(píng)論(0) 編輯 收藏 所屬分類:
數(shù)據(jù)庫(kù)DB