

-- 生产领料加物料名称字段
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MQBENTRY' AND KSQL_COL_NAME ='FMATERIALNAME')
 ALTER TABLE T_IM_MDC_MQBENTRY ADD (FMATERIALNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
 
 
 -- 完工入库加物料名称目字段
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRBLENTRY' AND KSQL_COL_NAME ='FMATERIALNAME')
 ALTER TABLE T_IM_MDC_PRBLENTRY ADD (FMATERIALNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );

