/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BEI_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BEI_ELECRECEIPT', 'T_BEI_ELECRECEIPT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_ELECRECEIPT') CREATE INDEX IDX_BEI_ELECRECEIPT ON T_BEI_ELECRECEIPT ( FORGID ,FBUSTYPE );


 EXEC P_ALTERPK 'PK_T_BEI_ELECRECEIPT_L', 'T_BEI_ELECRECEIPT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_ELECRECEIPT_L') CREATE INDEX IDX_BEI_ELECRECEIPT_L ON T_BEI_ELECRECEIPT_L ( FID ,FLOCALEID ,FDESCRIPTION );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BEI_constraint.sql **/
