IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_DOWNLOAD_FILE' AND KSQL_COL_NAME ='FFILE_TYPE')
 ALTER TABLE T_RIM_DOWNLOAD_FILE ADD (FFILE_TYPE NVARCHAR(10) DEFAULT ' ' NOT NULL );