-1
有30名學生在一個教室裏。我想通過在jsp中使用mysql查詢將它們分成三批。
起初我沒有使用下面的查詢
connection = DriverManager.getConnection(connectionURL, "root", "student");
String queryString = "update student set batch=?,exam=? where studentid='"+studentid+"' ";
pstatement = connection.prepareStatement(queryString);
pstatement.setString(1, batch);
pstatement.setString(2, exam);
你能告訴我們你的錯誤輸出嗎?你的查詢語法可能有點偏離。 –
先生我已添加快照請發現 – asif
您沒有給我們足夠的幫助,對不起。 –