放在data dictionary里,也就是所谓的系统表

解决方案 »

  1.   

    Oracle的数据字典(系统表)有很多,最好找一本参考书来看看.
    DDL语句会对这些数据字典做出改变
      

  2.   

    select * from dict;可以查出所有的表的信息。你自己找把(user,all,dba)为前缀的。
      

  3.   

    我的意思是这样的:
    比如有一个表(css_fix_header)。它的字段有这样一些信息:Name, Type, Nullable, Default, Comments这些信息存放在地方?
    谢谢!
      

  4.   

    select * from col where tname = 'css_fix_header'
      

  5.   

    select * from user_tab_columns where table_name = 'CSS_FIX_HEADER'
      

  6.   

    表名缺省是大写。但是如果你建了小写的表名,那样只能用小写了。
    最好用
    SELECT * FROM user_tab_columns WHERE upper(table_name) = upper('CSS_FIX_HEADER')
      

  7.   

    为什么单单就少了我最想看的:comments(表的注释)呢?
    它在哪里找?
      

  8.   

    dba_col_comments
    或者这样:
    select * from dba_tables where name like '%COMMENT%'
    从数据字典中找出放注释的系统表
      

  9.   

    desc css_fix_header;
    这一句一看就不对嘛.晕哦.这怎么写出来的?
    你试过吗?
      

  10.   

    desc css_fix_header是对的,在sql plus里面 就是这样用的
      

  11.   

    The following views allow you to access information about tables.View Description 
    DBA_TABLES ALL_TABLES USER_TABLES
     DBA view describes all relational tables in the database. ALL view describes all tables accessible to the user. USER view is restricted to tables owned by the user. Some columns in these views contain statistics that are generated by the DBMS_STATS package or ANALYZE statement.
     
    DBA_TAB_COLUMNS ALL_TAB_COLUMNS USER_TAB_COLUMNS
     These views describe the columns of tables, views, and clusters in the database. Some columns in these views contain statistics that are generated by the DBMS_STATS package or ANALYZE statement.
     
    DBA_ALL_TABLES ALL_ALL_TABLES USER_ALL_TABLES
     These views describe all relational and object tables in the database. Object tables are not specifically discussed in this book.
     
    DBA_TAB_COMMENTS ALL_TAB_COMMENTS USER_TAB_COMMENTS
     These views display comments for tables and views. Comments are entered using the COMMENT statement.
     
    DBA_COL_COMMENTS ALL_COL_COMMENTS USER_COL_COMMENTS
     These views display comments for table and view columns. Comments are entered using the COMMENT statement.
     
    DBA_EXTERNAL_TABLES ALL_EXTERNAL_TABLES USER_EXTERNAL_TABLES
     These views list the specific attributes of external tables in the database.
     
    DBA_EXTERNAL_LOCATIONS ALL_EXTERNAL_LOCATIONS USER_EXTERNAL_LOCATIONS
     These views list the data sources for external tables.
     
    DBA_TAB_HISTOGRAMS ALL_TAB_HISTOGRAMS USER_TAB_HISTOGRAMS
     These views describe histograms on tables and views.
     
    DBA_TAB_COL_STATISTICS ALL_TAB_COL_STATISTICS USER_TAB_COL_STATISTICS
     These views provide column statistics and histogram information extracted from the related TAB_COLUMNS views.
     
    DBA_TAB_MODIFICATIONS ALL_TAB_MODIFICATIONS USER_TAB_MODIFICATIONS
     These views describe tables that have been modified since the last time table statistics were gathered on them. The views are populated only for tables with the MONITORING attribute. They are not populated immediately, but after a time lapse (usually 3 hours).
     
    DBA_UNUSED_COL_TABS ALL_UNUSED_COL_TABS USER_UNUSED_COL_TABS
     These views list tables with unused columns, as ed by the ALTER TABLE ... SET UNUSED statement.
     
    DBA_PARTIAL_DROP_TABS ALL_PARTIAL_DROP_TABS USER_PARTIAL_DROP_TABS
     These views list tables that have partially completed DROP COLUMN operations. These operations could be incomplete because the operation was interrupted by the user or a system crash.
     
      

  12.   

    "desc css_fix_header;
    这一句一看就不对嘛.晕哦.这怎么写出来的?
    你试过吗?
    "请问你有用过oracle嘛? 受不了
      

  13.   

    all_tab_comments
    里面是表的comments内容.
    我想要的是表里字段的comments的内容.
      

  14.   

    "desc css_fix_header;
    这一句一看就不对嘛.晕哦.这怎么写出来的?
    你试过吗?
    "请问你有用过oracle嘛? 受不了不太会用.介绍一下是怎么用的?
      

  15.   

    找到了:  ALL_COL_COMMENTS