--损益确认迁移至扩展表
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_BUSINESSBILL_E' AND KSQL_COL_NAME IN ('FISPLCONFIRM'))
 ALTER TABLE T_TM_BUSINESSBILL_E ADD (FISPLCONFIRM CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_BUSINESSBILL_E' AND KSQL_COL_NAME IN ('FPLCONFIRMSTATUS'))
 ALTER TABLE T_TM_BUSINESSBILL_E ADD (FPLCONFIRMSTATUS NVARCHAR(50) DEFAULT ' ' NOT NULL );

 EXEC p_AlterColumn 'T_TM_BUSINESSBILL', 'FISPLCONFIRM', 'NULL', 'NULL', '1001', 'NULL';

 
