 EXEC P_ALTERPK 'PK_MDS_RETURNRECORD', 'T_MDS_RETURNRECORD', 'FID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_RETURNRECORD_ORDERPOOLID') CREATE INDEX IDX_MDS_RETURNRECORD_ORDERPOOLID ON T_MDS_RETURNRECORD ( FORDERPOOLID);
 
 

 EXEC P_ALTERPK 'PK_MDS_RETURNRECORDENTRY', 'T_MDS_RETURNRECORDENTRY', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_RETURNRECORDENTRY_ID') CREATE INDEX IDX_MDS_RETURNRECORDENTRY_ID ON T_MDS_RETURNRECORDENTRY ( FID );