IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANEBILL_A' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_PLANEBILL_A ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANEBILL_A' AND KSQL_COL_NAME IN ('FOUTORDERNUM'))
ALTER TABLE T_ER_PLANEBILL_A ADD (FOUTORDERNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_HOTELBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELBILL' AND KSQL_COL_NAME IN ('FOUTORDERNUM'))
ALTER TABLE T_ER_HOTELBILL ADD (FOUTORDERNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_TRAINBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINBILL' AND KSQL_COL_NAME IN ('FOUTORDERNUM'))
ALTER TABLE T_ER_TRAINBILL ADD (FOUTORDERNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLEBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_VEHICLEBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLEBILL' AND KSQL_COL_NAME IN ('FOUTORDERNUM'))
ALTER TABLE T_ER_VEHICLEBILL ADD (FOUTORDERNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_MEALBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALBILL' AND KSQL_COL_NAME IN ('FOUTORDERNUM'))
ALTER TABLE T_ER_MEALBILL ADD (FOUTORDERNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL_A' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_PLANECHECKINGBILL_A ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL_A' AND KSQL_COL_NAME IN ('FOUTSETTLEMENTNUM'))
ALTER TABLE T_ER_PLANECHECKINGBILL_A ADD (FOUTSETTLEMENTNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_HOTELCHECKINGBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTSETTLEMENTNUM'))
ALTER TABLE T_ER_HOTELCHECKINGBILL ADD (FOUTSETTLEMENTNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_TRAINCHECKINGBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTSETTLEMENTNUM'))
ALTER TABLE T_ER_TRAINCHECKINGBILL ADD (FOUTSETTLEMENTNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLECHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_VEHICLECHECKINGBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLECHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTSETTLEMENTNUM'))
ALTER TABLE T_ER_VEHICLECHECKINGBILL ADD (FOUTSETTLEMENTNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_MEALCHECKINGBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALCHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTSETTLEMENTNUM'))
ALTER TABLE T_ER_MEALCHECKINGBILL ADD (FOUTSETTLEMENTNUM VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGBILL' AND KSQL_COL_NAME IN ('FOUTACCOUNTID'))
ALTER TABLE T_ER_CHECKINGBILL ADD (FOUTACCOUNTID VARCHAR(255) DEFAULT ' ' NOT NULL );
