private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) { try { //1.Kısım Baglantı Saglıyoruz this.host = "jdbc:derby://localhost:1527/EMRE"; this.Name = "emre"; this.Pass = "2561"; Connection con = DriverManager.getConnection(host,Name,Pass); //2.Kısım Statement Olusturuyorum Statement cumle = con.createStatement(); String query = "SELECT * FROM P_LOGIN"; ResultSet rs = cumle.executeQuery(query); while(rs.next()) { rs.updateString("SIFRE", txtAddUserPassWord.getText()); rs.updateString("KULLANICI_ADI",txtAddUserName.getText()); rs.updateString("ROLE",cmbAddUserRole.getSelectedItem().toString()); JOptionPane.showMessageDialog(null,txtAddUserName.getText()+ "has been updated" ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)