The basic difference between DDL and DML is that DDL (Data Definition Language) is used to Specify the database schema database structure. On the other hand, DML (Data Manipulation Language) is used to access, modify or retrieve the data from the database
for example in case of DDL
we use CREATE, TRUNCATE, DROP, and ALTER command
whike in DML we use
SELECT, INSERT, UPDATE and DELETE command.