/**Begin D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_ELECRECEIPT' AND KSQL_COL_NAME IN ('FFINANCIALTYPEID'))
 ALTER TABLE T_BEI_ELECRECEIPT ADD (FFINANCIALTYPEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_TRANSDETAIL' AND KSQL_COL_NAME IN ('FFINANCIALTYPEID'))
 ALTER TABLE T_BEI_TRANSDETAIL ADD (FFINANCIALTYPEID BIGINT DEFAULT 0 NOT NULL );

EXEC p_AlterColumn 'T_BEI_ELECSTATEMENT', 'FAMOUNT', 'DECIMAL(19,6)', 'NULL', '0011', 'NULL';
/**End D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
