Which language is primarily used to define database schemas and their objects?

Options

  • A. DML
  • B. DDL
  • C. DCL
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. DDL

Detailed Explanation

  • DDL (Data Definition Language): Defines and modifies database structures.
  • Common DDL commands include CREATE, ALTER, DROP and TRUNCATE.
  • DDL commands are used to define tables, schemas and other database objects.