如何获取Oracle某个库中的表的中文名称以及字段名称、字段中文描述等?

解决方案 »

  1.   

    select * from user_tab_comments where table_name=tableName
      

  2.   

    SELECT * FROM User_Col_Comments 可以得到注释.
      

  3.   

     select 
    a.TABLE_NAME 表名,
    a.COMMENTS 表的中文名称,
    b.COLUMN_NAME 列名,
    b.comments 列的中文名称 
    from user_tab_comments a,User_Col_Comments b 
    WHERE a.TABLE_NAME=b.TABLE_NAME
    and a.table_name=upper('your table_name');
      

  4.   

    如果是想得到表的相关注释的话,用3楼的SQL就可以了。
      

  5.   

    select * from user_tab_comments where table_name=tableName
      

  6.   


    select * from user_tab_comments 可以得到表的相关信息。select * from user_col_comments 可以得到表中属性的相关信息。