DBMS UNIT 5 : SQL (Part 1) – Data Definition Language (DDL)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Database Management System

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

SQL (Structured Query Language)

A standard programming language used to manage and manipulate relational databases.

2
New cards

Data Definition Language (DDL)

A subset of SQL used to define and modify the structure of database objects like tables and schemas.

3
New cards

CREATE TABLE

A SQL command that creates a new table in the database with specified columns and data types.

4
New cards

DROP TABLE

A SQL command used to delete an existing table and all its data permanently from the database.

5
New cards

ALTER TABLE

A SQL command used to modify an existing table structure (e.g., add or drop columns, rename table).

6
New cards

PRIMARY KEY

A constraint that uniquely identifies each record in a table; cannot be null or duplicated.

7
New cards

FOREIGN KEY

A constraint used to link two tables; it ensures referential integrity by pointing to the primary key of another table.

8
New cards

NOT NULL

A constraint that ensures a column cannot have NULL values.

9
New cards

UNIQUE

A constraint that ensures all values in a column are distinct from one another.

10
New cards

AUTO_INCREMENT

A property that automatically generates a unique number when a new record is inserted (often used for primary keys).

11
New cards

DECIMAL(p, d)

A numeric data type where p is the precision (total digits) and d is the scale (digits after decimal point).