-
Dec 1st, 2009, 11:45 AM
#1
set an Integer array as query parameter
Somebody knows how can I set an integer array as paramenter in jdbctemplate ?
I have this query :
sql = select * from depto where id_depto in ( ? )
and I want to set an int array with some ids,
array = (1,2,3,4)
getSimpleJdbcTemplate()
.query(sql,
DeptoMapper,
new Object[]{array}
);
but that is incorret,
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules