IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_TRANSDETAIL' AND KSQL_COL_NAME ='FRULENAME') 
 ALTER TABLE T_BEI_TRANSDETAIL ADD (FRULENAME NVARCHAR(100) DEFAULT ' ' NOT NULL );