/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FQZADDRESS') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FQZADDRESS VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FQZSERVICENAME') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FQZSERVICENAME VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FDZPTBM') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FDZPTBM VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FZCM') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FZCM VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FAUTHCODE') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FAUTHCODE VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ENTERPRISE_BASEINFO' AND KSQL_COL_NAME ='FHOSTMANAGETYPE') 
 ALTER TABLE T_BDM_ENTERPRISE_BASEINFO ADD (FHOSTMANAGETYPE VARCHAR(100) DEFAULT ' ' NOT NULL );

/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_table.sql **/
