MSCEWI3037

Using Index constraint state removed from the constraint.

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Low

Description

USING INDEX statement is removed from the CONSTRAINT declaration.

Example Code

Input Code:

CREATE TABLE "MyDb"."MyTable"
(
    "COL1" NUMBER,
    CONSTRAINT "ConstraintMyTable" PRIMARY KEY ("COL1")
        USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
        STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
        PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1) ENABLE
);

Output Code:

CREATE OR REPLACE TABLE "MyDb"."MyTable"
    (
        "COL1" NUMBER(38, 18) /*** MSC-WARNING - MSCEWI1066 - NUMBER TYPE COLUMN MAY NOT BEHAVE SIMILARLY IN SNOWFLAKE ***/,
        CONSTRAINT "ConstraintMyTable" PRIMARY KEY ("COL1")
--    --** MSC-WARNING - MSCEWI3037 - USING INDEX CONSTRAINT STATE REMOVED FROM THE CONSTRAINT **
--            USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
--            STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
--            PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
--                                                         --** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. CONSTRAINT STATE ENABLE DISABLE **
--                                                         ENABLE
    );

Recommendations

Last updated