IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_COMPARETYPES' AND KSQL_COL_NAME ='FNEEDINPUT') 
 ALTER TABLE T_BAS_COMPARETYPES ADD (FNEEDINPUT CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_COMPARETYPES' AND KSQL_COL_NAME ='FINPUTTYPE') 
 ALTER TABLE T_BAS_COMPARETYPES ADD (FINPUTTYPE VARCHAR(20) DEFAULT ' ' NOT NULL );