-- 交易金额 交易附言
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYMENTBILL_C' AND KSQL_COL_NAME IN ('FTRANSACTIONAMOUNT')) 
 ALTER TABLE T_CAS_PAYMENTBILL_C ADD (FTRANSACTIONAMOUNT DECIMAL(19,4) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYMENTBILL_C' AND KSQL_COL_NAME IN ('FTRANSACTIONPOSTSCRIP')) 
 ALTER TABLE T_CAS_PAYMENTBILL_C ADD (FTRANSACTIONPOSTSCRIP NVARCHAR(255) DEFAULT ' ' NOT NULL );
