SELECT
count(v.vname) as cvname,
sum(t.rubnumber)||' '||t.unit as snum,
count(decode(v.status,'登记','3'))as cstatus
FROM
v_sp_sl_instance v,
td_construction_danrub_trans t
WHERE
t.instanceid = v.id
and v.vname = $P{ccname}
and t.rubtype = $P{ggtype}
and substr(t.trans_endtime,1,10) <= $P{etime}
and substr(t.trans_endtime,1,10) >= $P{btime}
GROUP BY
unit错在红色的地方说 ORA-01460: 转换请求无法实现或不合理
我若去掉 sql就没问题了
其中 vname和rubtype在数据库中都为varchar2型。
参数定义ccname和ggtype都定义为string
为什么会提示这种错误呢
count(v.vname) as cvname,
sum(t.rubnumber)||' '||t.unit as snum,
count(decode(v.status,'登记','3'))as cstatus
FROM
v_sp_sl_instance v,
td_construction_danrub_trans t
WHERE
t.instanceid = v.id
and v.vname = $P{ccname}
and t.rubtype = $P{ggtype}
and substr(t.trans_endtime,1,10) <= $P{etime}
and substr(t.trans_endtime,1,10) >= $P{btime}
GROUP BY
unit错在红色的地方说 ORA-01460: 转换请求无法实现或不合理
我若去掉 sql就没问题了
其中 vname和rubtype在数据库中都为varchar2型。
参数定义ccname和ggtype都定义为string
为什么会提示这种错误呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货