/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_RIM_HIS_SYNC_DATA', 'T_RIM_HIS_SYNC_DATA', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_HIS_SYNC_DATA') CREATE INDEX IDX_RIM_HIS_SYNC_DATA ON T_RIM_HIS_SYNC_DATA ( FSTATUS ,FTYPE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_HIS_SYNC_DATA2') CREATE  CLUSTERED INDEX IDX_RIM_HIS_SYNC_DATA2 ON T_RIM_HIS_SYNC_DATA ( FMODIFYDATEFIELD );



/**End D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
