I need to use the following query.
SELECT m.member_id, cardflag FROM member m, member_attribute ma WHERE m.member_number=:memberNumber AND m.ref_club_status IN ('A','S') AND m.member_id=ma.member_id
The datatype of member_id is byte array, and that of cardflag is varchar.
I need to use this query in my code, and looking at the options in jdbctemplate documentation, queryForList seems to be the best choice. I have been trying, but couldnt make out much as to how to pass the parameter to my query and also as to how to handle the return type.
Can anyone please help?
Thanks a lot in advance.
My answer is
Hope this useful.