/**Begin D:\PDM_UPGRADE\PDM1\BASE_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_COSTBOM4') CREATE INDEX IDX_BD_COSTBOM4 ON T_BD_COSTBOM ( FSYNCTIME  DESC ,FNUMBER );

EXEC p_DropIdx 'IDX_BD_BOMENTRY_QUERY', 'T_BD_BOMENTRY';

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


/**End D:\PDM_UPGRADE\PDM1\BASE_constraint.sql **/
