/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_LQPT_SPBM_HY', 'T_BDM_LQPT_SPBM_HY', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_LQPT_SPBM_HY') CREATE  CLUSTERED INDEX IDX_BDM_LQPT_SPBM_HY ON T_BDM_LQPT_SPBM_HY ( FID );


 EXEC P_ALTERPK 'PK_BDM_LQPT_SPBM', 'T_BDM_LQPT_SPBM', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_LQPT_SPBM') CREATE  CLUSTERED INDEX IDX_BDM_LQPT_SPBM ON T_BDM_LQPT_SPBM ( FNSRSBH ,FNUMBER );


 EXEC P_ALTERPK 'PK_T_BDM_LQPT_SL', 'T_BDM_LQPT_SL', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_LQPT_SL') CREATE  CLUSTERED INDEX IDX_BDM_LQPT_SL ON T_BDM_LQPT_SL ( FNSRSBH );



/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
