Skip to content

Types of SQL Commands (DDL, DML, DQL) ​

SQL commands are divided by what they do, as follows.

CategoryMeaningIn this project
DDL (Data Definition Language)Defines table structureCREATE TABLE, CREATE INDEX, DROP TABLE -> 01_schema.sql
DML (Data Manipulation Language)Manipulates dataINSERT, UPDATE, DELETE -> 02_sample_data.sql, Q15/Q16 in 03_queries.sql
DQL (Data Query Language)Queries dataSELECT -> most of 03_queries.sql

Summary ​

  • DDL defines structure (CREATE/DROP), DML manipulates data (INSERT/UPDATE/DELETE), and DQL queries data (SELECT).

Source: Codyssey-B1/B6-1