SQL – DDL Commands
NAME: Supriya Allam
EMAIL ID : supriyaallam9@[Link]
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