oracle怎么查询表对应的表空间

如题所述

1、select TABLE_NAME,DEF_TABLESPACE_NAME from USER_PART_TABLES order by DEF_TABLESPACE_NAME;
2、col SEGMENT_NAME format a30
select distinct SEGMENT_NAME,TABLESPACE_NAME from dba_segments where TABLESPACE_NAME=‘TS1’ order by SEGMENT_NAME;
3、 select TABLE_NAME,TABLESPACE_NAME from user_tables order by table_name;
温馨提示:答案为网友推荐,仅供参考
相似回答