is there any way to get the list of userName from a table where userId are many,
userId userName
1 abc
2 xyz
3 pqr
please seaa below the query i wish to execute via jdbcTemplate
,
String query = "Select userName from table_1 where userId = {1,2,3}";
HashMap<int,String> = jdbcTemplate.queryForMap(sql);
// HashMap - int : userId, String - userName