Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- Class.forName("com.mysql.jdbc.Driver");
- Connection c = DriverManager.getConnection(
- "jdbc:mysql://localhost/ventas2018","root","");
- Statement s = c.createStatement();
- String sql = "delete from producto where codigo = "
- + jTextField1.getText();
- s.execute(sql);
- jButton1ActionPerformed(null);
- javax.swing.JOptionPane.showMessageDialog(null, sql);
- } catch(Exception e){
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement