 --预测计划方案定义:处理方式
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FPROCESSMODE')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FPROCESSMODE NVARCHAR(50) NOT NULL DEFAULT ' ');
 --预测计划方案定义:预测起始日期
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FFCSTARTDATE')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FFCSTARTDATE DATETIME);
 --预测计划方案定义:周期类型
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FCYCLE')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FCYCLE NVARCHAR(50) NOT NULL DEFAULT ' ');
 --预测计划方案定义:期数
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FORECASTCALPLAN' AND KSQL_COL_NAME ='FPERIODS')
 ALTER TABLE T_MDS_FORECASTCALPLAN ADD (FPERIODS  BIGINT DEFAULT 0 NOT NULL  );