IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_BARCODE_UPGRADE_LOG' AND KSQL_COL_NAME ='FTRACEID') 
 ALTER TABLE T_FA_BARCODE_UPGRADE_LOG ADD (FTRACEID VARCHAR(50) DEFAULT ' ' NOT NULL );