/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_QUOTEBILL' AND KSQL_COL_NAME ='FVIETURNS') 
 ALTER TABLE T_SRC_QUOTEBILL ADD (FVIETURNS CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_DETAIL' AND KSQL_COL_NAME ='FENTRYSTATUS') 
 ALTER TABLE T_SRC_VIE_DETAIL ADD (FENTRYSTATUS CHAR(1) DEFAULT 'A' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_table.sql **/
