About 18,300,000 results
Open links in new tab
  1. Performing Database Operations in Java - GeeksforGeeks

    Nov 17, 2023 · In this article, we will be learning about how to do basic database operations using JDBC (Java Database Connectivity) API in Java programming language. These basic operations are INSERT, SELECT, UPDATE, and DELETE statements in SQL language.

  2. sql - update statement in Java - Stack Overflow

    try { PreparedStatement st = db.con.prepareStatement("UPDATE item SET Name = ?, Size = ?, Price = ?, WHERE ItemCode = ?"); st.setString(1, textArea_Code.getText()); st.setString(2, textArea_name.getText()); st.setString(3, textArea_size.getText()); st.setString(4, textArea_price.getText()); st.executeUpdate(); JOptionPane.showMessageDialog ...

  3. How to Update Contents of a Table using JDBC Connection?

    Dec 8, 2020 · Java has its own API which JDBC API which uses JDBC drivers for database connections. JDBC API provides the applications-to-JDBC connection and JDBC driver provides a manager-to-driver connection. Following are the 5 important steps to connect the java application to our database using JDBC.

  4. Update Data in MySQL Database with Java - Online Tutorials …

    Learn how to update data in a MySQL database using Java. This tutorial provides step-by-step instructions and code examples for effective data manipulation.

  5. JDBC Statement - Update a Record Example - Java Guides

    In this tutorial, we have covered the basics of using the JDBC Statement interface to update a record in a MySQL database table. We demonstrated how to establish a connection, execute an SQL query to update data, and close the connection using the try-with-resources statement.

  6. Java JDBC CRUD Tutorial: SQL Insert, Select, Update, and Delete …

    Sep 2, 2019 · This JDBC tutorial is going to help you learning how to do basic database operations (CRUD - Create, Retrieve, Update and Delete) using JDBC (Java Database Connectivity) API. These CRUD operations are equivalent to the INSERT, SELECT, UPDATE and DELETE statements in SQL language.

  7. JDBC Update Records - Online Tutorials Library

    JDBC Update Records - Learn how to update records in JDBC with clear examples and best practices. Enhance your Java database management skills today.

  8. Update a table row example - Java Code Geeks

    Nov 11, 2012 · In this example we shall show you how to update a Table row. To update a Table row one should perform the following steps: Load the JDBC driver, using the forName(String className) API method of the Class. In this example we use the MySQL JDBC driver. Create a Connection to the database.

  9. How to Update Database Records in Java? - Programmingempire

    To update records in a database using Java, you can use the JDBC (Java Database Connectivity) API. Here’s an example of how to update records in a MySQL database.

  10. Update SQL database with preparedStatement in Java

    Oct 19, 2016 · I have a java app with an SQL database using preparedStatement to insert rows into the database. I want the program to be able to update rows based on the serial number (unique).

  11. Some results have been removed
Refresh