This page explores the useful Data Definition Language (DDL) commands such as Create, Drop, Alter with examples.
Add Column
Alter Schema
CHECK Constraint
Computed Columns
Create
Create New Database
Create New Table
Create Schema
Delete
DDL
- SQL DDL: Getting started with SQL DDL commands in SQL Server
- SQL Server lock issues when using a DDL (including SELECT INTO) clause in long running transactions
Drop Column
Drop Database
Drop Schema
Drop Table
Foreign key
Identity Column
Modify Column
NOT NULL Constraint
PRIMARY KEY
- Constraints in SQL Server: SQL NOT NULL, UNIQUE and SQL PRIMARY KEY
- Learn SQL: Primary Key
- SQL Database design: Choosing a primary key
Rename Table
SELECT INTO
Sequence
- Difference between Identity & Sequence in SQL Server
- Sequence Objects in SQL Server
- Sequence objects feature in SQL Server
Synonym
Temporary Tables
Truncate Table
UNIQUE Constraint
Update
Latest posts by SQLShack (see all)
- Best author award in 2021 - January 3, 2022
- Best author award in 2020 - January 5, 2021
- Best author award in 2019 - January 3, 2020