

 --预测计划方案定义:历史事件
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FHISEVENT')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FHISEVENT  BIGINT DEFAULT 0 NOT NULL  );

 --预测计划方案定义:预测事件
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FFCEVENT')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FFCEVENT  BIGINT DEFAULT 0 NOT NULL  );