/* * String query = "insert into student (rollno, name) values ('1','ABC')"; * PreparedStatement preparedStatement = con.prepareStatement(query); * * NB: This is also correct. First format is used if the inputs are from user through JTextField. */
int noOfRowsUpdated = preparedStatement.executeUpdate();
0 Comments