IT lexicon › Database › DDL

DDL

Database På svenska → Updated: 2026-11-10

Data Definition Language—the subset of database commands for creating, modifying, and deleting schema structure.

DDL (Data Definition Language) is the part of a database system or SQL language that deals with structure, not data. Commands like CREATE TABLE, ALTER COLUMN, DROP INDEX are all DDL. It is often contrasted with DML (Data Manipulation Language), which comprises SELECT, INSERT, UPDATE, DELETE—the commands that read and write actual data.

Historically, many database systems did not permit DDL to run while other processes were reading data—a schema change often required locking the database entirely. Modern systems are more careful: some changes run online without downtime, while others (add a mandatory column without a default) still require full operations. DDL is often logged separately for auditing and recovery purposes.

← Back to the lexicon