/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
EXEC p_DropIdx 'IDX_BD_COSTBOM_QUERY', 'T_BD_COSTBOM';
EXEC p_DropIdx 'IDX_BD_COSTBOM_NUMBER', 'T_BD_COSTBOM';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_COSTBOM_QUERY') CREATE INDEX IDX_BD_COSTBOM_QUERY ON T_BD_COSTBOM ( FCREATEORGID ,FSTATUS ,FMATERIALID ,FVERSIONID ,FREPLACENOID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_COSTBOM_NUMBER') CREATE INDEX IDX_BD_COSTBOM_NUMBER ON T_BD_COSTBOM ( FNUMBER );


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
