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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_BUYER_BILL') CREATE  CLUSTERED INDEX IDX_SIM_BUYER_BILL ON T_SIM_BUEYER_BILL ( FDATE );


 EXEC P_ALTERPK 'PK_SIM_GOODS_BILL', 'T_SIM_GOODS_BILL', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_GOODS_BILL') CREATE  CLUSTERED INDEX IDX_SIM_GOODS_BILL ON T_SIM_GOODS_BILL ( FDATE );



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