/**Begin D:\PDM_UPGRADE\PDM1\EB_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_BGAPPLYBILL' AND KSQL_COL_NAME IN ('FVERSION')) 
 ALTER TABLE T_EB_BGAPPLYBILL ADD (FVERSION BIGINT NOT NULL DEFAULT 0 );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_BGAPPLYBILL' AND KSQL_COL_NAME IN ('FDATATYPE')) 
 ALTER TABLE T_EB_BGAPPLYBILL ADD (FDATATYPE BIGINT NOT NULL DEFAULT 0);

/**End D:\PDM_UPGRADE\PDM1\EB_table.sql **/