IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRIP_LOG' AND KSQL_COL_NAME IN ('FFIELDMAPPINGNUMBER'))
ALTER TABLE T_ER_TRIP_LOG ADD (FFIELDMAPPINGNUMBER NVARCHAR(100) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRIP_LOG' AND KSQL_COL_NAME IN ('FFIELDMAPPINGNAME'))
ALTER TABLE T_ER_TRIP_LOG ADD (FFIELDMAPPINGNAME NVARCHAR(100) DEFAULT ' ' NOT NULL);
