一、创建聚集索引
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;