0% found this document useful (0 votes)
136 views5 pages

SQL – DDL Commands ppt

Uploaded by

supriyaallam9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views5 pages

SQL – DDL Commands ppt

Uploaded by

supriyaallam9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SQL – DDL Commands

NAME: Supriya Allam


EMAIL ID : [email protected]
GRPOUP 2
Data Definition Language (DDL) is used to define, modify, and manage the structure of
database objects such as tables, indexes, and schemas.

Focuses on the schema and structure of databases.

DDL Commands

Create Alter Drop Truncate Rename

Modifies the Removes all


Create new table Deletes object
table(Add new records but Renaming the
or databse from the
Coloumn) keeps the database
database
structure
DDL commands with syntax

CREATE TABLE table_name (


column1 datatype,
column2 datatype,
column3 datatype);

ALTER TABLE table_name


ADD column_name
datatype;
DDL commands with syntax

ALTER TABLE table_name


Drop column_name
datatype;

DROP TABLE table_name


;

TRUNCATE TABLE table_name;


Thank you

You might also like