You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether you are just starting with databases or looking to refine your skills, this repository offers comprehensive insights into designing, querying, and managing relational databases. Explore the core concepts through practical examples and detailed explanations tailored for learners and professionals alike.
7
+
8
+
---
9
+
7
10
### Contents π
8
11
9
12
1.**Data Definition Language (DDL)**
@@ -23,6 +26,8 @@ Whether you are just starting with databases or looking to refine your skills, t
23
26
- SAVEPOINT π
24
27
5.**Examples**
25
28
29
+
---
30
+
26
31
### Data Definition Language (DDL) π οΈ
27
32
28
33
DDL statements are used to define, alter, and manage database schema.
@@ -76,7 +81,7 @@ Used to delete all rows from a table without deleting the table itself.
76
81
-- Truncate a table
77
82
TRUNCATE TABLE employees;
78
83
```
79
-
84
+
---
80
85
81
86
### Data Query Language (DQL) π
82
87
@@ -94,6 +99,8 @@ SELECT name, department FROM employees WHERE age > 30;
94
99
SELECT*FROM employees;
95
100
```
96
101
102
+
---
103
+
97
104
### Data Manipulation Language (DML) β
98
105
99
106
DML statements are used for managing data within schema objects.
@@ -135,6 +142,8 @@ DELETE FROM employees WHERE age < 30;
135
142
-- Delete all records
136
143
DELETEFROM employees;
137
144
```
145
+
---
146
+
138
147
### Transaction Control Language (TCL) πΎ
139
148
140
149
TCL statements are used to manage transactions in the database.
0 commit comments