日期:2014-05-19  浏览次数:20822 次

关于spring jdbc in语句操作的问题,急!!!
使用spring的 jdbc包操作oracle数据库,现在遇到一个问题。
select * from temp where id in (?)

如果问号的值是做个,该怎么处理,贴出详细代码,谢谢。

------解决方案--------------------
hibernate 中有个setParameterList
不知道spring jdbc中有没,如果没的话,要自己循环 ? ...
------解决方案--------------------
jdbcTemplate有的 jdbcTempalte.queryForInt(sql, new Object[]{str(这里写所有的参数)})