mysql - Separate 30 into three batches -
there 30 students in classroom. want separate them 3 batches using mysql query in jsp.
initially did using below query
connection = drivermanager.getconnection(connectionurl, "root", "student"); string querystring = "update student set batch=?,exam=? studentid='"+studentid+"' "; pstatement = connection.preparestatement(querystring); pstatement.setstring(1, batch); pstatement.setstring(2, exam);
i don't have privileges comment check if ui sending second student info correctly. query looks ok me.
Comments
Post a Comment