DDL
Data definition language, a set of SQL statements for manipulating the database itself rather than individual table rows. Includes all forms of the CREATE
, ALTER
, and DROP
statements. Also includes the TRUNCATE
statement, because it works differently than a DELETE FROM
statement, even though the ultimate effect is similar.
table-name
DDL statements automatically commit the current transaction; they cannot be rolled back.
The InnoDB-related aspects of DDL include speed improvements for CREATE INDEX
and DROP INDEX
statements, and the way the file-per-table setting affects the behavior of the TRUNCATE TABLE
statement.
See also commit.
See also file-per-table.
See also rollback.
See also SQL.
See also transaction.