IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ALLCHECKINGBILL' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_ALLCHECKINGBILL ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ALLCHECKINGBILL' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_ALLCHECKINGBILL ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELCHECKINGBILL' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_HOTELCHECKINGBILL ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELCHECKINGBILL' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_HOTELCHECKINGBILL ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALCHECKINGBILL' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_MEALCHECKINGBILL ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALCHECKINGBILL' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_MEALCHECKINGBILL ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL_A' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_PLANECHECKINGBILL_A ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL_A' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_PLANECHECKINGBILL_A ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINCHECKINGBILL' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_TRAINCHECKINGBILL ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINCHECKINGBILL' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_TRAINCHECKINGBILL ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLECHECKINGBILL' AND KSQL_COL_NAME IN ('FOABILLFORMID'))
ALTER TABLE T_ER_VEHICLECHECKINGBILL ADD (FOABILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLECHECKINGBILL' AND KSQL_COL_NAME IN ('FREIMBILLFORMID'))
ALTER TABLE T_ER_VEHICLECHECKINGBILL ADD (FREIMBILLFORMID VARCHAR(50) DEFAULT ' ' NOT NULL);