Attached is a sample program to Update data in MySQL using the Muchach's DB.
Here is the sample code: JDBCudpate.java (1.06 kb)
The Prerequisite are:
- MySQL installation: Primer-Installing-MySQL-on-Windows
- Murach's DB is loaded: How-to-create-the-databases-for-this-book
- Java JDBC: JDBC-driver-for-MySQL-download-and-install
Expected results should be something like:
Records updated:1
done.