
EXEC P_ALTERPK 'PK_FMM_PROINTERACT', 'T_FMM_PROINTERACT', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROINTERACT_FNUM') CREATE INDEX IDX_FMM_PROINTERACT_FNUM ON T_FMM_PROINTERACT ( FNUMBER );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROINTERACT_FCT') CREATE INDEX IDX_FMM_PROINTERACT_FCT ON T_FMM_PROINTERACT ( FCREATETIME );


EXEC P_ALTERPK 'PK_FMM_PROINTERACT_L', 'T_FMM_PROINTERACT_L', 'FPKID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROINTERACT_L_FID') CREATE INDEX IDX_FMM_PROINTERACT_L_FID ON T_FMM_PROINTERACT_L ( FID,FLOCALEID );


EXEC P_ALTERPK 'PK_FMM_PAYSTATEGY', 'T_FMM_PAYSTATEGY', 'FENTRYID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PAYSTATEGY_FSEQ') CREATE INDEX IDX_FMM_PAYSTATEGY_FSEQ ON T_FMM_PAYSTATEGY ( FID,FSEQ );