/**Begin C:\anzhuang\PDM_UPGRADE\PDM1\TCTB_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCTB_TAX_VER_HJBHS', 'T_TCTB_TAX_VER_HJBHS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_HJBHS_ORG') CREATE INDEX IDX_TCTB_HJBHS_ORG ON T_TCTB_TAX_VER_HJBHS ( FORG ,FTAXTYPE );


 EXEC P_ALTERPK 'PK_TCTB_TAX_VER_HJBHS_E', 'T_TCTB_TAX_VER_HJBHS_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_TAX_VER_HJBHS_E_FK') CREATE INDEX IDX_TCTB_TAX_VER_HJBHS_E_FK ON T_TCTB_TAX_VER_HJBHS_E ( FID );


 EXEC P_ALTERPK 'PK_TCTB_TAX_VER_QTSF', 'T_TCTB_TAX_VER_QTSF', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_QTSF_ORG') CREATE INDEX IDX_TCTB_QTSF_ORG ON T_TCTB_TAX_VER_QTSF ( FORG ,FTAXTYPE );


 EXEC P_ALTERPK 'PK_TCTB_TAX_VER_QTSF_E', 'T_TCTB_TAX_VER_QTSF_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_TAX_VER_QTSF_E_FK') CREATE INDEX IDX_TCTB_TAX_VER_QTSF_E_FK ON T_TCTB_TAX_VER_QTSF_E ( FID );



/**End C:\anzhuang\PDM_UPGRADE\PDM1\TCTB_constraint.sql **/
