Glossary termConcept

Database

Also known as: DB, Database management system, DBMS

Organized collection of structured data stored electronically and managed by software that lets users store, query and update it reliably.

A database is an organized store of data, managed by a database management system (DBMS) that handles storing, retrieving, updating and protecting it. Instead of each program keeping data in its own files, a database provides a shared, structured repository that many users and applications can query at once, with rules that keep the data consistent. A bank's accounts, an online store's products and orders and a hospital's patient records all live in databases. The term is often used loosely for both the data and the software, such as PostgreSQL or SQLite, that manages it.

Early systems of the 1960s, such as IBM's IMS and Charles Bachman's Integrated Data Store, organized records in hierarchies or networks that programs traversed by following links. In 1970 Edgar F. Codd of IBM proposed the relational model, in which data is stored in tables of rows and columns and queried declaratively, by describing the result wanted rather than how to find it. Relational databases, queried with SQL, dominated from the 1980s onward. From the late 2000s, NoSQL systems offered alternatives such as document, key-value and graph stores for workloads that needed different trade-offs.

Databases provide guarantees that ad hoc files cannot, including ACID transactions that keep data correct when many users act at once or when systems crash, indexes built from structures such as B-trees for fast lookup, access control and backup and recovery. They are also prime targets for attackers: SQL injection and misconfigured databases exposed to the internet have caused many large data breaches. Choosing a database involves weighing data shape, consistency requirements, scale and operational effort, and many systems use several kinds side by side.

Key points

  • A database management system stores, retrieves and protects shared data on behalf of many users and programs.
  • Edgar F. Codd's 1970 relational model, queried with SQL, became the dominant approach to databases.
  • NoSQL databases offer document, key-value, wide-column and graph models for different workloads.
  • Transactions, indexes, access control and backups distinguish databases from simple data files.

Related entries

Glossary term

SQL

Programming

Declarative language for defining, querying and modifying data in relational databases, standardized by ANSI and ISO since the 1980s.

Glossary term

NoSQL

Programming

Broad category of databases that store data in models other than relational tables, such as documents, key-value pairs, wide columns or graphs.

Glossary term

ACID

Programming

Set of four properties, atomicity, consistency, isolation and durability, that guarantee database transactions are processed reliably.

Technology

PostgreSQL

ProgrammingFOSS

Free and open-source object-relational database system known for reliability, standards compliance and extensibility, descended from Berkeley's POSTGRES.

Technology

SQLite

Programming

Small, self-contained, serverless SQL database engine in the public domain that is embedded in phones, browsers and many other applications.

Glossary term

SQL Injection

CybersecurityProgramming

Web application vulnerability in which untrusted input is interpreted as part of a database query, letting attackers read, change or delete data.

Glossary term

Data Breach

OSINTCybersecurity

Security incident in which protected, sensitive or confidential data is accessed, disclosed or stolen by an unauthorized party.

Glossary term

Hierarchical data structure of nodes connected by edges, with a single root and no cycles, used for file systems, indexes and parsers.

Referenced by

Other entries that discuss or point to Database.