ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查询表上的索引及索引建立的字段

查询表上的索引及索引建立的字段

原创 Linux操作系统 作者:ycpriscilla 时间:2011-08-25 10:51:46 0 删除 编辑
SQL>select * from user_ind_columns where index_name=upper('&index_name');

PS:

查看某表的约束条件


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;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24478467/viewspace-705755/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 三年之期
请登录后发表评论 登录
全部评论

注册时间:2011-08-18

  • 博文量
    36
  • 访问量
    113903