/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_ADDDEDUCT_DET', 'T_TCCIT_ADDDEDUCT_DET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_ADDDEDUCT_DET' AND KSQL_INDNAME = 'IDX_ADDDEDUCT_DET') CREATE INDEX IDX_ADDDEDUCT_DET ON T_TCCIT_ADDDEDUCT_DET ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_ADDDEDUCT_SUM', 'T_TCCIT_ADDDEDUCT_SUM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_ADDDEDUCT_SUM' AND KSQL_INDNAME = 'IDX_ADDDEDUCT_SUM') CREATE INDEX IDX_ADDDEDUCT_SUM ON T_TCCIT_ADDDEDUCT_SUM ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_ADDDEDUCT_DE_SJJT', 'T_TCCIT_ADDDEDUCT_DE_SJJT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_ADDDEDUCT_DE_SJJT' AND KSQL_INDNAME = 'IDX_ADDDEDUCT_DE_SJJT') CREATE INDEX IDX_ADDDEDUCT_DE_SJJT ON T_TCCIT_ADDDEDUCT_DE_SJJT ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_ADDDEDUCT_SU_SJJT', 'T_TCCIT_ADDDEDUCT_SU_SJJT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_ADDDEDUCT_SU_SJJT' AND KSQL_INDNAME = 'IDX_ADDDEDUCT_SU_SJJT') CREATE INDEX IDX_ADDDEDUCT_SU_SJJT ON T_TCCIT_ADDDEDUCT_SU_SJJT ( FORGID ,FSKSSQQ ,FSKSSQZ );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
