 EXEC P_ALTERPK 'PK_HRIC_DIENTRYENTITY', 'T_HRIC_DIENTRYENTITY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_DIENTRYENTITY') CREATE INDEX IDX_HRIC_DIENTRYENTITY ON T_HRIC_DIENTRYENTITY ( FID );
