IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYMENTBILL_E' AND KSQL_COL_NAME IN ('FREFUNDDETAILID'))
ALTER TABLE T_CAS_PAYMENTBILL_E ADD (FREFUNDDETAILID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECEIVINGBILL' AND KSQL_COL_NAME IN ('FREFUNDDETAILID'))
ALTER TABLE T_CAS_RECEIVINGBILL ADD (FREFUNDDETAILID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AGENTPAYBILLENTRY' AND KSQL_COL_NAME IN ('FREFUNDDETAILID'))
ALTER TABLE T_CAS_AGENTPAYBILLENTRY ADD (FREFUNDDETAILID BIGINT DEFAULT 0 NOT NULL );
