Data Retrieval

The previous section discussed the creation of various database objects using DDL. This section describes how to manipulate database objects using the part of SQL known as Data Manipulation Language (DML). The majority of the SQL statements within an Apache Derby application involve DML statements. Therefore, application developers must understand the various methods of inserting, updating, and retrieving data from the database. We will examine the four main DML statements: SELECT, INSERT, UPDATE, and DELETE.

The “Your Momma Loves Drama” (YMLD) database described at the beginning of this chapter will be used to demonstrate many of the features of SQL. Six tables are associated with this database:

  • PRODUCTIONS— Titles and dates ...

Get Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ 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.