
 EXEC P_ALTERPK 'PK_HRIC_ATTACHMENTDATA', 'T_HRIC_ATTACHMENTDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_ATTACHMENTDATA') CREATE INDEX IDX_HRIC_ATTACHMENTDATA ON T_HRIC_ATTACHMENTDATA ( FRELENTITYID );

