create index

1.
CREATE UNIQUE INDEX FBL_PICKUP_SHIPPING_HOL_PK ON FBL_PICKUP_SHIPPING_HOLIDAYS (STORE_ID, STORE_LOCAL_ID, HOLIDAY_DATE, ASSET_VERSION);
ALTER TABLE FBL_PICKUP_SHIPPING_HOLIDAYS ADD CONSTRAINT FBL_PICKUP_SHIPPING_HOL_PK PRIMARY KEY (STORE_ID, STORE_LOCAL_ID, HOLIDAY_DATE, ASSET_VERSION)USING INDEX;


ALTER TABLE FBL_PICKUP_SHIPPING_HOLIDAYS DROP CONSTRAINT FBL_PICKUP_SHIPPING_HOL_PK;
DROP INDEX FBL_PICKUP_SHIPPING_HOL_PK;


2.
ALTER TABLE FBL_PICKUP_SHIPPING_HOLIDAYS ADD CONSTRAINT FBL_PICKUP_SHIPPING_HOL_PK PRIMARY KEY (STORE_ID, STORE_LOCAL_ID, HOLIDAY_DATE, ASSET_VERSION);
ALTER TABLE FBL_PICKUP_SHIPPING_HOLIDAYS DROP PRIMARY KEY;


3.EVERY STATUS
ALTER TABLE FBL_PICKUP_SHIPPING_HOLIDAYS DROP CONSTRAINT FBL_PICKUP_SHIPPING_HOL_PK CASCADE DROP INDEX;

你可能感兴趣的:(Date,table)