/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SIM_MATCH_INV_RELATION', 'T_SIM_MATCH_INV_RELATION', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_MATCH_INV_SBILLID') CREATE  CLUSTERED INDEX IDX_SIM_MATCH_INV_SBILLID ON T_SIM_MATCH_INV_RELATION ( FSBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_MATCH_INV_TBILLID') CREATE INDEX IDX_SIM_MATCH_INV_TBILLID ON T_SIM_MATCH_INV_RELATION ( FTBILLID );



/**End D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
