i understand that the best practice is to have a fixed number of parameters and then define them using preparedStatement.setParam(xxx).
What if i have a list of student id and i would like to update a column for each student data row:
update student set student_grade=FAIL where student_id in (?) where ? will be the list of student ids in my list object. what's the best way to go about doing this?