 EXEC P_ALTERPK 'PK_MDS_FPLOGENTRY', 'T_MDS_FPLOGENTRY', 'FENTRYID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_FPLOGENTRY_FID') CREATE INDEX IDX_MDS_FPLOGENTRY_FID ON T_MDS_FPLOGENTRY ( FID );