Coding Fun Java Update data in SQL server using Java

Update data in SQL server using Java





Update table data in SQL database using java in Netbeans | how to update data in sql database | update sql data using java | sequel database

Channel Subscription :

Affilate:

Find all the videos in the playlist:

Tags: , , , , , ,

12 thoughts on “Update data in SQL server using Java”

  1. Indra Subedi says:

    Hello My Brothers and Sisters. My humble request to you, Please Don't Forget To Subscribe
    If you have any problem, Comment down. I will provide you solution as soon as possible.

  2. gates bill says:

    Why do I click on item table. but the screen does not display information

  3. Please can you upload your source code to your links pls

  4. where has been define the function show_user? i have lost it you simply call it in update session

  5. how to call form sucess when a login in page create plz send me source code

  6. Arthur Tan says:

    Good. Thanks a lot…

  7. Hi Indra Subedi,
    java.lang.Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    String url = "jdbc:sqlserver://localhost:1433;databaseName=aneesh;user=sa;password=root";
    Connection con = DriverManager.getConnection(url);
    String query = "INSERT INTO AddDoctors(Doctor_Name, Clinic_Name, Address, Phone_Number, PFM, Full_Metal, All_Ceramic, Implant)VALUES(?,?,?,?,?,?,?,?)";
    PreparedStatement pst = con.prepareStatement(query);
    pst.setString(1, Doctor_Name.getText());
    pst.setString(2, Clinic_Name.getText());
    pst.setString(3, Address.getText());
    pst.setString(4, Phone_Number.getText());
    pst.setString(5, PFM.getText());
    pst.setString(6, Full_Metal.getText());
    pst.setString(7, All_Ceramic.getText());
    pst.setString(8, Implant.getText());
    con.close();

    Does not insert data into my database. Why?

  8. DeZzeRt says:

    Hi Sir, whats the part of code that selects all the row not just one cell? And whats the part of code that when you click a row, it fills the textfields and other fields?

  9. Satish Patel says:

    Sir.. what if we want to update one field say only name and not all fields..?pl. reply

  10. anju boura says:

    sir where is your show_user method.can you give me the code of that.

Leave a Reply

Your email address will not be published. Required fields are marked *