100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Types of sql commands

Rating
-
Sold
-
Pages
3
Uploaded on
08-08-2024
Written in
2024/2025

information of sql commands with syntax

Institution
Module








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Module

Document information

Uploaded on
August 8, 2024
Number of pages
3
Written in
2024/2025
Type
Lecture notes
Professor(s)
Muthu
Contains
All classes

Subjects

Content preview

‭1.3 Types of SQL Commands | DDL‬ ‭DML DQL‬
‭DCL TCL | auto-commit commands in sql |‬
‭Categories of SQL‬
‭ elcome to my notes on Data Definition Language (DDL)! In these notes, I‬
W
‭will be focusing solely on DDL and its role in defining database structure.‬

‭Data Definition Language (DDL)‬

‭●‬ D ‭ DL is a type of SQL language used to define and manage the‬
‭structure of a database‬
‭●‬ ‭DDL commands are used to create, alter, and delete database‬
‭objects such as tables, schemas, and views‬
‭Key DDL Commands:‬

‭‬ ‭
● CREATE‬ ‭: used to create new database objects‬
‭●‬ ‭ALTER‬ ‭: used to modify the structure of existing database objects‬
‭●‬ ‭ ‭: used to delete database objects‬
DROP‬

‭Create Command:‬

‭●‬ C ‭REATE TABLE table_name (column1 datatype‬
constraints, column2 datatype constraints, ...);‬

‭●‬ ‭Example:‬‭
CREATE TABLE employees (id INT PRIMARY‬
KEY, name TEXT, salary DECIMAL(5,2));‬

‭Alter Command:‬

‭●‬ A ‭LTER TABLE table_name ADD/DROP/CHANGE‬
column_name datatype constraints;‬

‭●‬ ‭Example:‬‭ ALTER TABLE employees ADD department TEXT;‬
‭●‬ ‭Example:‬‭ALTER TABLE employees DROP id;‬
‭●‬ ‭Example:‬‭
ALTER TABLE employees CHANGE name‬
employee_name TEXT;‬
$2.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
sathishelumalaie67

Get to know the seller

Seller avatar
sathishelumalaie67 Loyola-icam college of engineering and technology
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions