mysql - Separate 30 into three batches -


enter image description here

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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -