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