--平衡利库匹配明细添加异常信息字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_BALINV_MATCHDETAIL' AND KSQL_COL_NAME ='FERRORMSG')
 ALTER TABLE T_IM_BALINV_MATCHDETAIL ADD (FERRORMSG NVARCHAR(255));
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_BALINV_MATCHDETAIL' AND KSQL_COL_NAME ='FERRORMSG_TAG')
 ALTER TABLE T_IM_BALINV_MATCHDETAIL ADD (FERRORMSG_TAG NCLOB);