Java MySQL database tutorials and examples
Over the years I've done a lot of Java programming, including Java database programming, and I've tried to document a lot of what I've learned about database programming.
A very long time ago I wrote these generic Java database programming tutorials:
More recently I followed those tutorials with these newer Java MySQL database programming tutorials:
- Java MySQL JDBC Driver class and URL example
- Java MySQL SELECT example
- Java MySQL INSERT example (using Statement)
- Java MySQL INSERT example (using PreparedStatement)
- Java MySQL UPDATE example
- Java MySQL DELETE example
These days I use Spring JDBC for all my Java database programming. If you've never used Spring before, it is a life-saver. Here's a link to the Spring Framework website.
If online database programming tutorials aren't your thing, here are links to the best Java database programming books I know, including a Spring book. (If you've never used Spring for your Java database programming needs, you'll thank me later.)
I hope this collection of Java database tutorials and books will be helpful to you!
Recent blog posts
- Free: Introduction To Functional Programming video training course
- The #1 functional programming (and computer programming) book
- The User Story Mapping Workshop process
- Alvin Alexander, Certified Scrum Product Owner (CSPO)
- Alvin Alexander is now a Certified ScrumMaster (CSM)
- Our “Back To Then” app (for iOS and Android)
- A Docker cheat sheet
- Pushing a Scala 3 JAR/Docker file to Google Cloud Run
- Reading a CSV File Into a Spark RDD (Scala Cookbook recipe)
- Reading a File Into a Spark RDD (Scala Cookbook recipe)