/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_CUR_EXCHANGE_RATE', 'T_BDM_CUR_EXCHANGE_RATE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_CUR_EXCHANGE_RATE') CREATE  CLUSTERED INDEX IDX_BDM_CUR_EXCHANGE_RATE ON T_BDM_CUR_EXCHANGE_RATE ( FBZDM ,FNF ,FYF );


 EXEC P_ALTERPK 'PK_BDM_CURR_TABLE', 'T_BDM_CURR_TABLE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_CURR_TABLE') CREATE  CLUSTERED INDEX IDX_BDM_CURR_TABLE ON T_BDM_CURR_TABLE ( FTEXTFIELD );


 EXEC P_ALTERPK 'PK_BDM_CUSTOMS_REMARK', 'T_BDM_CUSTOMS_REMARK', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_CUSTOMS_REMARK_ORG') CREATE  CLUSTERED INDEX IDX_BDM_CUSTOMS_REMARK_ORG ON T_BDM_CUSTOMS_REMARK ( FORGID );



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