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