EXEC P_ALTERPK 'PK_MSPLAN_HIGHLIGTHCOLOR', 'T_MSPLAN_HIGHLIGTHCOLOR', 'FENTRYID', '1';
 
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_HIGHLIGTHCL_FSEQ') CREATE INDEX IDX_MSPLAN_HIGHLIGTHCL_FSEQ ON T_MSPLAN_HIGHLIGTHCOLOR (FID,FSEQ);


EXEC P_ALTERPK 'PK_MSPLAN_CROSSICONSET', 'T_MSPLAN_CROSSICONSET', 'FDETAILID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_CROSSICONSET_FSEQ') CREATE INDEX IDX_MSPLAN_CROSSICONSET_FSEQ ON T_MSPLAN_CROSSICONSET (FENTRYID,FSEQ);