 EXEC P_ALTERPK 'PK_MSPLAN_CROSSCONTENT', 'T_MSPLAN_CROSSCONTENT', 'FDETAILID', '1';

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

 EXEC P_ALTERPK 'PK_MSPLAN_CROSSMOVEENTRY', 'T_MSPLAN_CROSSMOVEENTRY', 'FDETAILID', '1';

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

