IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_STRUCTPROCONFIG' AND KSQL_COL_NAME IN ('FENTITYTYPEID')) 
 ALTER TABLE T_HAOS_STRUCTPROCONFIG ADD (FENTITYTYPEID VARCHAR(60) DEFAULT ' ' NOT NULL );