-- 计息明细表分录增加字段：实际日利率
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_INTEREST_DETAIL_E' AND KSQL_COL_NAME ='FREALDAILYRATE')
ALTER TABLE T_FA_INTEREST_DETAIL_E ADD (FREALDAILYRATE DECIMAL(19,6) DEFAULT 0 NOT NULL );