-- Create table
create table tb_person
(
PERSON_ID INTEGER not null,
PERSON _NAME VARCHAR2(20 CHAR) not null,
LOCATION VARCHAR2(20 CHAR) not null
)
partition by list (LOCATION)
(
partition P_NORTH values ('黑龙江')
tablespace COM_DJX_INFODATA
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 4M
next 4M
minextents 1
maxextents unlimited
pctincrease 0
),
partition P_ Municipalities values ('上海','天津','重庆', '北京')
tablespace COM_DJX_ INFODATA
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 4M
next 4M
minextents 1
maxextents unlimited
pctincrease 0
),
partition P_SOUTH values ('广东','福建')
tablespace COM_DJX_ INFODATA
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 4M
next 4M
minextents 1
maxextents unlimited
pctincrease 0
)
);
本文详细介绍了如何使用Oracle的CREATE TABLE语句创建一个根据地理位置进行分区的表,包括不同区域的具体配置和存储参数,以实现高效的数据存储和检索。
108

被折叠的 条评论
为什么被折叠?



