/**Begin D:\scm_code\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm2\RIM_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_INV_ORDINARY_ITEM_CODE') CREATE INDEX IDX_RIM_INV_ORDINARY_ITEM_CODE ON T_RIM_INV_ORDINARY_ITEM ( FGOODS_CODE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_INV_SPECIAL_ITEM_CODE') CREATE INDEX IDX_RIM_INV_SPECIAL_ITEM_CODE ON T_RIM_INV_SPECIAL_ITEM ( FGOODS_CODE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_INVOICE_CREATE') CREATE INDEX IDX_RIM_INVOICE_CREATE ON T_RIM_INVOICE ( FCREATETIME );


/**End D:\scm_code\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm2\RIM_constraint.sql **/
