/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_constraint.sql **/
/** 从tctb迁移过来的公式建表语句 **/
/** kd_1.5.9_tctb_constraint **/
 EXEC P_ALTERPK 'PK_TCTB_FORMULA', 'T_TCTB_FORMULA', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TCTB_FORMULA_KEY') CREATE  CLUSTERED INDEX IDX_T_TCTB_FORMULA_KEY ON T_TCTB_FORMULA ( FFORMULAKEY );

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