/**Begin D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
EXEC p_AlterColumn 'T_CAS_TRANSFERAPPLYBILL', 'FTRANSFERTYPE', 'NVARCHAR(5)', 'NOT NULL', '1111', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_TRANSFERAPPLYBILL' AND KSQL_COL_NAME IN ('FEXCHANGERATE'))
ALTER TABLE T_CAS_TRANSFERAPPLYBILL ADD (FEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_TRANSFERAPPLYBILL' AND KSQL_COL_NAME IN ('FBACKBILLFLAG'))
ALTER TABLE T_CAS_TRANSFERAPPLYBILL ADD (FBACKBILLFLAG CHAR(1) DEFAULT '0' NOT NULL );
--- drop column --------- 请认真检查该脚本 -------------------
EXEC p_AlterColumn 'T_CAS_TRANSFERAPPLYBILL', 'FEXRATERATE', 'NULL', 'NULL', '1001', 'NULL';

 --- drop column --------- 请认真检查该脚本 -------------------
EXEC p_AlterColumn 'T_CAS_TRANSFERAPPLYBILL', 'FFBACKBILLFLAG', 'NULL', 'NULL', '1001', 'NULL';


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