Tag(s): JDBC
Note:the MyConnection class was used to connect to the DB
PreparedStatement prepstmt; try { prepstmt = theConn.prepareStatement ("DELETE FROM tCust "+ " WHERE custId = ?"); prepstmt.setString(1,cust_id.getText()); prepstmt.executeUpdate(); theConn.commit(); prepstmt.close(); } catch (Exception e) { e.printStackTrace(); }
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com