创建聚集索引

一、创建聚集索引

create index index_jq_cad_jcj_jq on jq_cad_jcj_jq(alarmtime,branchkey,stationkey)
tablespace QZLD_DATA
pctfree 10
initrans 2
maxtrans 255
storage(
   initial 504k
   next 504k
   minextents 1
   maxextents unlimited
);

--说明:
--index_jq_cad_jcj_jq :索引名字
--jq_cad_jcj_jq :表名
--alarmtime,branchkey,stationkey:是表的3个段

二、删除索引

drop index index_jq_cad_jcj_jq;
create index index_jq_cad_jcj_jq on jq_cad_jcj_jq(alarmtime,branchkey,stationkey)
tablespace QZLD_DATA
pctfree 10
initrans 2
maxtrans 255
storage(
   initial 504k
   next 504k
   minextents 1
   maxextents unlimited
);

--说明:
--index_jq_cad_jcj_jq :索引名字
--jq_cad_jcj_jq :表名
--alarmtime,branchkey,stationkey:是表的3个段

二、删除索引

drop index index_jq_cad_jcj_jq;

猜你喜欢

转载自x125858805.iteye.com/blog/1685145
今日推荐