DDL Commands
Week 2: Articles
Data Definition Language (DDL) Commands
Learning Outcomes
- Learn how to create, modify, and remove structures, like tables.
- Learn how the various DDL statements work.
Lesson Materials
CREATE
Statement- The
CREATE
statement lets you create new objects in a database. TheCREATE
statement writes the information for new objects to the data dictionary. TheCREATE
statement also can leverage default storage clauses that govern the organization of the object inside the physical space of database files. ALTER
Statement- The
ALTER
statement lets you modify the structure of existing objects in a database. DROP
Statement- The
DROP
statement lets you remove the structure of existing objects from the database provided there are no dependent object types. RENAME
Statement- The
RENAME
statement lets you rename a structure in the database. You can only rename objects with names not already found in the schema or database. TRUNCATE
Statement- The
TRUNCATE
statement lets you remove the data from a table without writing the changes to a logging file. COMMENT
Statement- The
COMMENT
statement lets you add text comments to a table or columns in a table.