Attached is a sample program to Delete data from MySQL using the Muchach's DB.
Here is the sample code: JDBCdelete.java (1.01 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 deleted: 1
done.