IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANEBILL_A' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_PLANEBILL_A ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL_A' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_PLANECHECKINGBILL_A ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_HOTELBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_HOTELCHECKINGBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_HOTELCHECKINGBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_TRAINBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRAINCHECKINGBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_TRAINCHECKINGBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLEBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_VEHICLEBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_VEHICLECHECKINGBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_VEHICLECHECKINGBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_MEALBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALCHECKINGBILL' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_MEALCHECKINGBILL ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_DAILYVEHICLEBILL' AND KSQL_COL_NAME IN ('FHEADPROJECT'))
ALTER TABLE T_ER_DAILYVEHICLEBILL ADD (FHEADPROJECT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_MEALAPPLICATION_BILL' AND KSQL_COL_NAME IN ('FHEADPROJECT'))
ALTER TABLE T_ER_MEALAPPLICATION_BILL ADD (FHEADPROJECT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FPROJECTID'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );