
 EXEC P_ALTERPK 'PK_T_IM_MDC_MQBENTRY_L', 'T_IM_MDC_MQBENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_MQBENTRY_L') CREATE INDEX IDX_IM_MDC_MQBENTRY_L ON T_IM_MDC_MQBENTRY_L ( FENTRYID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_IM_MDC_PRBLENTRY_L', 'T_IM_MDC_PRBLENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_PRBLENTRY_L') CREATE INDEX IDX_IM_MDC_PRBLENTRY_L ON T_IM_MDC_PRBLENTRY_L ( FENTRYID ,FLOCALEID );



