EXEC P_ALTERPK 'PK_FMM_PREARRANGEPER', 'T_FMM_PREARRANGEPER', 'FPKID', '1';
 
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PREAER_FID') CREATE INDEX IDX_FMM_PREAER_FID ON T_FMM_PREARRANGEPER (FID,FBASEDATAID);


EXEC P_ALTERPK 'PK_FMM_STANDARDROLE', 'T_FMM_STANDARDROLE', 'FPKID', '1';
 
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_STANLE_FENTRYID') CREATE INDEX IDX_FMM_STANLE_FENTRYID  ON T_FMM_STANDARDROLE (FENTRYID,FBASEDATAID);