无法查看创建的分区
Unable to view partitions created
我可以用分区
创建 table
create table Employee (
PRIMARY KEY (dateofbirth, surname, firstname),
dateofbirth date,
surname varchar(20),
firstname varchar(20) not null
)
Partition by hash(dateofbirth)(
partition C1,
partition C2,
partition C3,
partition C4
);
当我运行这个
select * from user_tab_partitions where table_name ='Employee';
我什么也没得到(没有选择行)?如何查看我创建的分区?
我正在寻找类似这样的输出
PARTITION_NAME
--------------------------------------------------------------------------------------------------------------------------------
TQ84_LIST_PARTITION_EAST
TQ84_LIST_PARTITION_NORTH
TQ84_LIST_PARTITION_SOUTH
TQ84_LIST_PARTITION_WEST
(忽略table名称和列名称,它们可能不合适,因为原来的table很长,但问题仍然存在。)
您的 table 名为 'time'
,但您查询 table 'timeslot'
所有 oracle 元数据都是大写的:
select * 来自 user_tab_partitions 其中 table_name ='TIME';
我可以用分区
创建 tablecreate table Employee (
PRIMARY KEY (dateofbirth, surname, firstname),
dateofbirth date,
surname varchar(20),
firstname varchar(20) not null
)
Partition by hash(dateofbirth)(
partition C1,
partition C2,
partition C3,
partition C4
);
当我运行这个
select * from user_tab_partitions where table_name ='Employee';
我什么也没得到(没有选择行)?如何查看我创建的分区?
我正在寻找类似这样的输出
PARTITION_NAME
--------------------------------------------------------------------------------------------------------------------------------
TQ84_LIST_PARTITION_EAST
TQ84_LIST_PARTITION_NORTH
TQ84_LIST_PARTITION_SOUTH
TQ84_LIST_PARTITION_WEST
(忽略table名称和列名称,它们可能不合适,因为原来的table很长,但问题仍然存在。)
您的 table 名为 'time'
,但您查询 table 'timeslot'
所有 oracle 元数据都是大写的:
select * 来自 user_tab_partitions 其中 table_name ='TIME';