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