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.
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.
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
- Learn AI Data EngineeringIn early access (MEAP)
- Investing for Programmers
- Java Persistence with Spring Data and Hibernate epub
- DuckDB in Action
- Grokking Relational Database Design
What to know first
- SQLSQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
- JDBCJDBC (Java Database Connectivity) is the standard Java API for connecting to databases, executing SQL statements, and processing results.
- computational notebookA computational notebook is an interactive document that combines executable code with explanatory content and computational outputs.
- database tableA database table is a relational data structure that organizes records into rows whose values correspond to defined columns.
Related concepts
- SQLused by · SQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
- schemaproduces · A schema is a formal specification of the structure, fields, types, relationships, and constraints of data.
- CREATE OR ALTERincludes · CREATE OR ALTER is a Snowflake SQL command that creates a database object if it does not exist or changes an existing object to match its supplied definition.
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.

