Back Forum Reply New

How to pass the parameters to a query statement?

Hi there,

I have a query statement -- sql = select * from t_user where name in ?.
Assuming I want to select row with the name in John, Tom, Cathy.
How can I pass the params to jdbcTemplate?
jdbcTemplate.query(sql, params, new UserRowMapper());

Thanks.
¥
Back Forum Reply New