请教!! oracle数据库中有没有取得字段的描述内容的函数,也就是列的comments?

解决方案 »

  1.   

    就用desc table 就可以看到啊
      

  2.   

    我的意思不是查看列的注释,而是通过方法获得列的注释。就像java里的ResultSetMetaData中通过getColumnName()获得列名一样。
      

  3.   

    DBA_COL_COMMENTS
    ALL_COL_COMMENTS
    USER_COL_COMMENTS
      

  4.   

    以上是涉及注释信息的数据字典你可以自己写一个函数,简单SELECT返回即可
      

  5.   


    select comments from USER_COL_COMMENTS where table_name='' and column_name=''
      

  6.   

    select comments from user_col_comments where table_naem='name'
      

  7.   

    从系统表里面取,如下:select comments   
    from USER_COL_COMMENTS
    where table_name= 'student' 
      and column_name= 'stunum'