Ddl
Data Definition Language (DDL) is a subset of SQL used to define and manage the structure of database objects, such as schemas, tables, views, indexes, and constraints. DDL commands affect the schema rather than the data and are distinct from Data Manipulation Language (DML), which handles data queries and updates, and from Data Control Language (DCL) and Transaction Control Language (TCL).
The core DDL statements include CREATE, ALTER, DROP, TRUNCATE, and RENAME. CREATE defines new objects, such as
DDL statements are executed by the database engine and modify the database schema, updating system catalogs
Transactional behavior for DDL varies by database. In many systems, DDL is treated as an auto-commit operation
Examples include: CREATE TABLE employees (id INT PRIMARY KEY, name VARCHAR(100), hire_date DATE); ALTER TABLE employees