
--错误信息字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_PROBABILITYLOG' AND KSQL_COL_NAME ='FERRMSG')
ALTER TABLE T_MDS_PROBABILITYLOG ADD (FERRMSG NVARCHAR(255) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_PROBABILITYLOG' AND KSQL_COL_NAME ='FERRMSG_TAG')
ALTER TABLE T_MDS_PROBABILITYLOG ADD (FERRMSG_TAG NCLOB);