我想,建一个视图,将我在Oracle数据库中创建的所有表名,表的中文注释,字段名,字段注释,字段类型构成视图,但这几张系统表老找不到,麻烦各位高手提醒一下,到底是那几张系统表

解决方案 »

  1.   

    当前用户的所有的表名称:user_tables
    当前用户的所有的表的中文注释:user_tab_comments
    当前用户的所有的表的字段名称及其中文注释:user_col_comments
      

  2.   

    create view sys_v_tabcommets as
    select a.table_name,a.comments table_comments,b.tablespace_name,c.column_name,c.comments column_commnets
    from  user_tab_comments a,user_tables b,user_col_comments c
    where a.table_name = b.table_name
    and b.table_name = c.table_name(+);