IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALMFTINFO' AND KSQL_COL_NAME ='FCONSIDERMINBATCH')
  ALTER TABLE T_BD_MATERIALMFTINFO ADD (FCONSIDERMINBATCH CHAR(1) DEFAULT '0' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALMFTINFO' AND KSQL_COL_NAME ='FMINBATCHNUM')
    ALTER TABLE T_BD_MATERIALMFTINFO ADD (FMINBATCHNUM NUMERIC(23, 10) DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALMFTINFO' AND KSQL_COL_NAME ='FMINBATCHUNIT')
      ALTER TABLE T_BD_MATERIALMFTINFO ADD (FMINBATCHUNIT BIGINT DEFAULT 0);