© Peter Späth and Jeff Friesen 2020
P. Späth, J. FriesenLearn Java for Android Developmenthttps://doi.org/10.1007/978-1-4842-5943-6_15

15. Accessing Databases

Peter Späth1  and Jeff Friesen2
(1)
Leipzig, Sachsen, Germany
(2)
Winnipeg, MB, Canada
 

Applications often need to access databases to store and retrieve various kinds of data. A database (http://en.wikipedia.org/wiki/Database) is an organized collection of data. Although there are many kinds of databases (such as hierarchical, object-oriented, and relational), relational databases, which organize data into tables that can be related to each other, are common.

Note

In a relational database, each row stores a single item (such as an employee) and each column stores a single item attribute (such as ...

Get Learn Java for Android Development: Migrating Java SE Programming Skills to Mobile Development 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.