Beginner Glossary: Database Words in Plain English
Every subject has its own vocabulary, and databases have a lot of it. This glossary explains the words you will meet in your first months, in plain English, with a tiny example where it helps. Terms are grouped by topic rather than alphabet, so related words sit together.
The basics
| Term | Plain meaning |
| Database | An organised collection of data, managed by software so it can be stored, searched and changed safely. |
| DBMS | Database management system: the software that runs a database, such as SQLite, PostgreSQL, MySQL or SQL Server. |
| Relational database | A database that stores data in tables that can be linked by keys. |
| SQL | Structured Query Language, the language used to ask relational databases for data and to change it. |
| Query | A question or instruction written in SQL, such as SELECT name FROM pets;. |
| Schema | The structure of a database: its tables, columns, types and rules. |
Tables
| Term | Plain meaning |
| Table | A set of rows that all have the same columns, about one kind of thing. |
| Row | One record in a table, such as one customer. Also called a record or tuple. |
| Column | One kind of fact in a table, such as email. Also called a field or attribute. |
| Data type | What kind of value a column holds: whole numbers, text, dates and so on. |
| NULL | A marker meaning "no value" or "unknown". Not the same as zero or empty text. |
Keys and rules
| Term | Plain meaning |
| Primary key | The column that uniquely identifies each row and never changes. |
| Foreign key | A column that points to the primary key of another table, linking the two. |
| Composite key | A key made of two or more columns together. |
| Constraint | A rule the database enforces, such as NOT NULL, UNIQUE or CHECK. |
| Normalisation | Organising tables so each fact is stored once, in the right place. |
Writing queries
| Term | Plain meaning |
| SELECT | Read data. |
| INSERT, UPDATE, DELETE | Add, change and remove rows. |
| CRUD | Create, read, update, delete: the four basic operations. |
| WHERE | Filters which rows a statement uses. |
| JOIN | Combines rows from two tables that match on a condition. |
| Aggregate | A function that summarises many rows, such as COUNT or SUM. |
| GROUP BY | Makes one result row per group, for aggregates. |
| Subquery | A query inside another query. |
| View | A saved query that can be used like a table. |
Behind the scenes
| Term | Plain meaning |
| Index | A sorted helper structure that lets the database find rows quickly, like a book's index. |
| Transaction | A group of changes that happen all together or not at all. |
| Commit | Make a transaction's changes permanent. |
| Rollback | Undo a transaction's changes. |
| Query plan | The steps the database chooses to run a query; shown by EXPLAIN. |
Connecting from code
| Term | Plain meaning |
| Driver | A library that lets your programming language talk to a database. |
| Connection string | Text that tells a driver where the database is and how to log in. |
| Placeholder | A marker such as ? in SQL where a value is supplied separately. |
| SQL injection | An attack where user input changes the meaning of a SQL command; prevented by placeholders. |
| ORM | Object-relational mapper: a library that lets you work with rows as objects in your code. |
| Migration | A recorded, repeatable change to a database's structure. |
How to use this glossary
When a lesson uses a word you do not know, look it up here, then go back and reread the sentence. If a word you met is missing, or an explanation is unclear, tell us through the contact page and we will add or improve it. For longer explanations of the most important terms, see the free web book on what a database is.
A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.
Related pages on this site