/**Begin D:\pdm\PDM_UPGRADE1\PDM1\HDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_TRANSFERBILL_A' AND KSQL_COL_NAME ='FMID') 
 ALTER TABLE T_HDM_TRANSFERBILL_A ADD (FMID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_TRANSFERBILL_D' AND KSQL_COL_NAME ='FMID') 
 ALTER TABLE T_HDM_TRANSFERBILL_D ADD (FMID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_TRANSFERBILL_B' AND KSQL_COL_NAME ='FMID') 
 ALTER TABLE T_HDM_TRANSFERBILL_B ADD (FMID BIGINT DEFAULT 0 NOT NULL );

/**End D:\pdm\PDM_UPGRADE1\PDM1\HDM_table.sql **/
