这个时间段到底怎么搞呀??提示:java.sql.SQLException: 无效的列索引

int updaterow = DaoUtils
.getDao()
.runSQL("update sms_send_balance ssb set ssb.balance_value=?,ssb.count_sms=?,ssb.current_time = sysdate where ssb.past_balance=? and ssb.current_balance=?",
new Object[] {
map.get("balance_value"),
map.get("count_sms"),
map.get("current_time"),
map.get("past_balance"),
map.get("current_balance")
});
加了字段current_time 就提示这个错误。。

具体的要你自己debug跟踪下runsql的执行过程,不过从字面上看,4个?却有5个变量current_time这个变量你加的是sysdate,是不是错位了导致类型对应不上
温馨提示:内容为网友见解,仅供参考
第1个回答  2015-03-13
5个参数,才4个问号,当然报错啦,你少写了一个问号追问

那个sysdate不算吗??那我要怎么加个?呢

相似回答