Chapter 10: Managing Data in a Database

This chapter explains and demonstrates how to manage – that is, insert, read, update, and delete – data in a database using a Java application. It also provides a short introduction to Structured Query Language (SQL) and basic database operations, including how to connect to a database, how to create a database structure, how to write a database expression using SQL, and how to execute these expressions.

The following topics will be covered in this chapter:

  • Creating a database
  • Creating a database structure
  • Connecting to a database
  • Releasing the connection
  • Create, read, update, and delete (CRUD) operations on data
  • Using a shared library JAR file to access a database

By the end of the chapter, you will ...

Get Learn Java 17 Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.