liveBook · Manning

Data definition language

Also called DDL

Data definition language is the subset of SQL statements used to define and modify database structures and objects, such as schemas, tables, views, and constraints.

How 2 Manning books explain it

Test Driven: Practical TDD and Acceptance TDD for Java Developers

A data definition language is a language for declaring and modifying database structures such as tables and columns.

How it is used
Versions database schema definitions and supports schema setup for integration tests.
How deep it goes
Compares SQL-script execution and Hibernate-generated schemas, including database compatibility and column-type differences.
Examples
Uses SQL schema scripts, numbered delta files, and Hibernate's create-drop setting as schema-creation examples.
What you can do after
Configure integration-test schema creation with Hibernate's hibernate.hbm2ddl.auto=create-drop setting.

Read how Test Driven: Practical TDD and Acceptance TDD for Java Developers explains data definition language →

AI for Everyday IT

DDL is the class of SQL statements that defines and modifies database structures such as tables, columns, and constraints.

How it is used
Uses AI prompts to generate SQL queries and database-object DDL for database development tasks.
How deep it goes
Demonstrates a table-creation request and generated design without detailing DDL syntax or execution.
Examples
Uses an application login table with UserID, Username, Email, PasswordHash, and LastLogin fields.
What you can do after
Apply it via a chatbot to request a SQL Server login table design and CREATE TABLE statement.

Read how AI for Everyday IT explains data definition language →

Also covered in

What to know first

Related concepts

Questions about data definition language

What is data definition language?

Data definition language is the subset of SQL statements used to define and modify database structures and objects, such as schemas, tables, views, and constraints.

Which Manning books explain data definition language?

Test Driven: Practical TDD and Acceptance TDD for Java Developers and AI for Everyday IT.

What should I know before learning data definition language?

Manning books that teach data definition language usually introduce SQL, JDBC, computational notebook and database table first.

What is the difference between data definition language and data manipulation language?

Data definition language is the subset of SQL statements used to define and modify database structures and objects, such as schemas, tables, views, and constraints. Data manipulation language is the subset of SQL statements used to retrieve and modify data stored in relational databases.

What kinds of data definition language are there?

Kinds of data definition language include CREATE OR ALTER.

What is data definition language also called?

Data definition language is also called DDL.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.