/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_ASSERT_ACCE_TOTAL', 'T_TCCIT_ASSERT_ACCE_TOTAL', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_ASSERT_ACCE_TOTAL') CREATE  CLUSTERED INDEX IDX_TCCIT_ASSERT_ACCE_TOTAL ON T_TCCIT_ASSERT_ACCE_TOTAL ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_FZJGFP_2015', 'T_TCCIT_QYSDS_FZJGFP_2015', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_FZJGFP_2015') CREATE  CLUSTERED INDEX IDX_TCCIT_QYSDS_FZJGFP_2015 ON T_TCCIT_QYSDS_FZJGFP_2015 ( FSBBID );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_GDZC_2015', 'T_TCCIT_QYSDS_GDZC_2015', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_GDZC_2015') CREATE  CLUSTERED INDEX IDX_TCCIT_QYSDS_GDZC_2015 ON T_TCCIT_QYSDS_GDZC_2015 ( FSBBID );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_JMMX_2015', 'T_TCCIT_QYSDS_JMMX_2015', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_JMMX_2015') CREATE  CLUSTERED INDEX IDX_TCCIT_QYSDS_JMMX_2015 ON T_TCCIT_QYSDS_JMMX_2015 ( FSBBID );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_JMSD_2015', 'T_TCCIT_QYSDS_JMSD_2015', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_JMSD_2015') CREATE  CLUSTERED INDEX IDX_TCCIT_QYSDS_JMSD_2015 ON T_TCCIT_QYSDS_JMSD_2015 ( FSBBID );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_ZB_2015', 'T_TCCIT_QYSDS_ZB_2015', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_ZB_2015') CREATE  CLUSTERED INDEX IDX_TCCIT_QYSDS_ZB_2015 ON T_TCCIT_QYSDS_ZB_2015 ( FSBBID );



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