
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_SUPCATEGORY' AND KSQL_COL_NAME ='FJOINTDATACHANNELID') 
 ALTER TABLE T_PUR_SUPCATEGORY ADD (FJOINTDATACHANNELID VARCHAR(100) DEFAULT ' ' NOT NULL );