在oracle10中如何用sql语句展开所有表空间、展开表空间中所有表和展开指定表的所有字段?

解决方案 »

  1.   

    展开所有表空间:select * from v$tablespace展开指定表的所有字段:select * from tablename where 1=2
      

  2.   

    --表空间
    select * from dba_tablespaces;--表
    select * from dba_tables where tablespace_name = '表空间名称';--表的字段
    select * from dba_tab_columns where table_name = '表名称';
      

  3.   

    看来我对数据字典表还不是很熟悉啊,努力加强ing~~
      

  4.   

    先给你两个:
    /--展开指定表的所有字段
    desc tableA;/--展开所有表空间
    select * from v$tablespace;
      

  5.   


    /--展开表空间中所有表
    select owner,table_name from dba_tables where tablespace_name = '表空间名';
      

  6.   

    建议你买一本oracle管理的书看,一般里面对一些管理常用到的表都讲得比较详细!