无法查看已创建的分区

问题描述 投票:0回答:2

我能够创建带有分区的表

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

(忽略表名和列名,它们可能不合适,因为原始表很长,但是问题仍然存在。)

我能够使用分区创建表Employee(PRIMARY KEY(dateofbirth,姓,名),dateofbirth日期,姓varchar(20),名字varchar(20)不为null来创建表…

sql database oracle sqlplus partitioning
2个回答
1
投票

所有oracle元数据均为大写:

从user_tab_partitions中选择*,其中table_name ='TIME';


0
投票

您的表名为'time',但查询表'timeslot'

© www.soinside.com 2019 - 2024. All rights reserved.