Attached is a sample program to Insert data into MySQL using the Muchach's DB.
Here is the sample code: JDBCinsert.java (1.20 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.