-- 项目新增字段：附件数
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FATTACHMENTCOUNTFIELD') 
ALTER TABLE T_PMPD_PROJECT_MCC ADD (FATTACHMENTCOUNTFIELD INT DEFAULT 0 NOT NULL);