 EXEC P_ALTERPK 'PK_T_ER_RECENTRYDETAIL', 'T_ER_RECENTRYDETAIL', 'FENTRYID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_RECENTRYDETAIL_FID') CREATE INDEX IDX_ER_RECENTRYDETAIL_FID ON T_ER_RECENTRYDETAIL ( FID );
