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

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_CONFIRM_BILL_TC_TID') CREATE  CLUSTERED INDEX IDX_SIM_CONFIRM_BILL_TC_TID ON T_SIM_CONFIRM_BILL_TC ( FTID );



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