Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conn = Connect.ConnectDB();
- String sql = "Update [SoapTbl] set [SoapName] ='"+txtNAME.getText()+"', [SoapQty] ='"+txtQUANTITY.getText()+"', [SoapPrice] ='"+txtPRICE.getText()+"', where [SoapID] ='"+txtID.getText()+"";
- try{
- pst = conn.prepareStatement(sql);
- pst.executeUpdate();
- JOptionPane.showMessageDialog(null, "Soap Table has been updated!");
- UpdateSoapTbl();
- }
- catch(Exception e){
- JOptionPane.showMessageDialog(null, e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement