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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -