Data Definition Language

Data Definition Language (DDL) is the subset of SQL statements used to define, alter, and remove the structures that hold data: data types, tables, views, indexes, compound statements (stored procedures, functions, triggers, and events), and databases, servers, and plugins themselves. Unlike Data Manipulation Language, which reads and writes rows, DDL statements describe the shape of the schema.

This chapter is organized into the following topics:


Together these statements let a schema designer declare every object a MySQL database can contain, from a single column's data type up to the routines and triggers that run inside the server.