请问如何在oracle中查询所有用户表的表名、主键名称、索引、外键?(

解决方案 »

  1.   

    select * from all_objects
      

  2.   

    http://www.gbunix.com/htmldata/2004_06/2/5/article_53_1.html
      

  3.   

    user_constraints
    user_cons_columns
      

  4.   

    看我的帖
    http://community.csdn.net/Expert/topic/5499/5499487.xml?temp=.6518518可惜你的分好少哦~:(
      

  5.   

    表在all_tables
    索引在all_indexes,
    主键名称、索引、外键这些约束在all_constraints