Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Database Foundations Creating Tables and Manipulating Data with SQL Manipulating Schema and Data

Mayur Pande
PLUS
Mayur Pande
Courses Plus Student 11,711 Points

Andrew says in this video that DDL modifies the schema.

Why would someone want to do that, is there a reason for it?

1 Answer

Steven Parker
Steven Parker
229,005 Points

The reason to use DDL is that it's how you create and update the organization of your database (the schema).

Say, for example, you have a database that currently stores movie titles. But you decide you also want to keep the year the movie was released. You would use DDL to add the new column for the year to your table schema.

Think of DDL as what you use to change the size and shape of a box, and DML (Data Manipulation Language) as what would change the contents of the box. Both are important tasks in handling your storage needs.