arrow
arrow
arrow
Which of the following is used to create a database schema?
Question



Which of the following is used to create a database schema?

A.

DML

B.

DDL

C.

HTML

D.

XML

Correct option is B


The Data Definition Language (DDL) is used to create, modify, and delete database schemas and objects such as tables, indexes, and constraints. It forms the foundation of database structure and organization.
Information Booster
1. Data Definition Language (DDL): DDL commands define and manage the structure of the database. Common DDL commands include:
· CREATE: Used to create a database schema or objects like tables, views, and indexes.
· ALTER: Used to modify an existing schema.
· DROP: Used to delete schema objects.
2. Example of a DDL Command:

This command defines the structure of the "Students" table.
Additional Knowledge
· Schema: Logical structure that defines the organization of data, including tables, columns, and relationships.
· DDL Execution: Changes made by DDL commands are automatically committed, meaning they are permanently saved to the database.
· DML (Data Manipulation Language):
· Used for querying and manipulating data in a database.
· Commands include SELECT, INSERT, UPDATE, and DELETE.
· DML operates on the data within the schema but does not define the schema itself.
· HTML (HyperText Markup Language):
· Used for structuring and presenting content on the web.
· Not related to database schema creation.
· XML (eXtensible Markup Language):
· A markup language used for storing and transporting data.
· While XML can represent data structures, it is not used to define database schemas.

Free Tests

Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English
Free
Must Attempt

UGC NET Paper 1 Mock Test 1

languageIcon English
  • pdpQsnIcon50 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English
test-prime-package

Access ‘UGC NET Computer Science’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow