Skip to content
Exercises · Q9

Q.What is SQL? Explain the difference between DDL and DML, giving two commands of each.

ChseodishaTextbookSubjectiveImportance★★★★★est
60% · 9/15 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

SQL (Structured Query Language) is the standard language used to create and work with data in a relational database such as MySQL. Instead of writing a full program, you write short SQL statements that tell the DBMS what you want; MySQL follows the ANSI SQL-99 standard. SQL commands are grouped into sub-languages according to their job. The two most important are DDL and DML.

DDL (Data Definition Language) — commands that define or change the structure of the database and its tables. They build and alter the 'containers' that hold data.

  • Example commands: CREATE (make a new database or table), ALTER (change a table's structure), DROP (remove a table or database).

DML (Data Manipulation Language) — commands that work with the data inside the tables.

  • Example commands: INSERT (add a new row), UPDATE (change existing data), DELETE (remove rows). (SELECT, used to read data, is studied along with DML.) …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.