dba_tables中tablespace_name为空表示什么?

[复制链接]
查看11 | 回复6 | 2005-4-27 08:46:18 | 显示全部楼层 |阅读模式
dba_tables中tablespace_name为空表示什么?
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
说明该表为临时表(create global temporary table创建出来的表)
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
还有一种情况是该表为分区表。
要知道什么原因,根据表名,查询dba_objects,查看object_type就知道情况了。
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
临时表,分区表有这种情况.
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
分區表
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
原以为cluster表也是空,经测试发现不是。
SQL> create cluster clu_t (deptno number);
Cluster created.
SQL> create table t (id number,ename varchar2(20),deptno number) cluster clu_t (deptno);
Table created.
SQL> create global temporary table tt(id int);
Table created.
SQL> create table ttt(id int,name varchar2(20),job varchar2(20)) partition by range (job)
2(partition part1 values less than ('D'), partition part2 values less than (maxvalue));
Table created.
SQL> select table_name,tablespace_name,cluster_name from user_tables;
TABLE_NAME
TABLESPACE_NAME
CLUSTER_NAME
------------------------------ ------------------------------ ------------------------------
T
USERS
CLU_T
TT
TTT
SQL>
回复

使用道具 举报

千问 | 2005-4-27 08:46:18 | 显示全部楼层
Name of the tablespace containing the table; NULL for partitioned, temporary, and index-organized tables
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行