账表查询报错
528次浏览
编辑于2019年01月25日 15:28:09
错误信息:Sql execute exception : SELECT t.SQL_BATCH, t.KSQL_SEQ, sum(CASE WHEN t.FBalSeq = 2 AND t.fperiod = 201801 THEN ISNULL(t.FSubDebitFor, 0.0) ELSE 0.0 END) FDebitFor, sum(CASE WHEN t.FBalSeq = 2 AND t.fperiod = 201801 THEN ISNULL(t.FSubCreditFor, 0.0) ELSE 0.0 END) FCreditFor, sum(CASE t.FBalSeq WHEN 1 THEN ISNULL(t.FEndBalanceFor, 0.0) WHEN 2 THEN (ISNULL(t.FSubDebitFor, 0.0) - ISNULL(t.FSubCreditFor, 0.0)) ELSE 0.0 END) FEndBalanceFor, sum(CASE WHEN t.FBalSeq = 1 AND TO_INT((t.fperiod / 100)) = 2018 THEN ISNULL(t.FYearDebitFor, 0.0) WHEN t.FBalSeq = 2 AND TO_INT((t.fperiod / 100)) = 2018 THEN ISNULL(t.FSubDebitFor, 0.0) ELSE 0.0 END) FYearDebitFor, sum(CASE WHEN t.FBalSeq = 1 AND TO_INT((t.fperiod / 100)) = 2018 THEN ISNULL(t.FYearCreditFor, 0.0) WHEN t.FBalSeq = 2 AND TO_INT((t.fperiod / 100)) = 2018 THEN ISNULL(t.FSubCreditFor, 0.0) ELSE 0.0 END) FYearCreditFor FROM VTZ110LFFB1O502V2DALYIB11WA9SEYDM1EY t WHERE t.FAccountID = ?
Caused exception message is: 该游标未声明。
Caused exception message is: 该游标未声明。
您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!
请选择打赏金币数 *
10金币20金币30金币40金币50金币60金币
可用金币: 0