 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_TLNEEDPLANENTRY' AND KSQL_COL_NAME ='FSHORTAGEQTY') 
 ALTER TABLE T_MSPLAN_TLNEEDPLANENTRY ADD (FSHORTAGEQTY DECIMAL(23,10) DEFAULT 0 NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_TLNEEDPLANENTRY' AND KSQL_COL_NAME ='FCUSTOK') 
 ALTER TABLE T_MSPLAN_TLNEEDPLANENTRY ADD (FCUSTOK VARCHAR(5) DEFAULT ' ' NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_TLNEEDPLANENTRY' AND KSQL_COL_NAME ='FPLANSUPDATE') 
 ALTER TABLE T_MSPLAN_TLNEEDPLANENTRY ADD (FPLANSUPDATE DATETIME);
 
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_TLNEEDPLANENTRY' AND KSQL_COL_NAME ='FDELAYDATE') 
 ALTER TABLE T_MSPLAN_TLNEEDPLANENTRY ADD (FDELAYDATE BIGINT DEFAULT 0 NOT NULL );
 
 