我能够创建带有分区的表
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来创建表…
所有oracle元数据均为大写:
从user_tab_partitions中选择*,其中table_name ='TIME';
您的表名为'time'
,但查询表'timeslot'