SQL Short Notes
SQL Short Notes
Short Notes
DDL
DML
DCL
TCL
@Kiran Kanwar Rathore
@kiranrathore123
DDL Command
DDL (Data Definition Language): These
commands are used to define the
structure and layout of the database.
Some common DDL commands includes:
CREATE
ALTER
DROP
TRUNCATE
DROP
This command is used to delete an
existing table and all its data. Here's an
example:
TRUNCATE
This command is used to delete all the
data from an existing table. Here's an
example:
SELECT
INSERT
UPDATE
DELETE
UPDATE
This command is used to update existing data in
a table. Here's an example:
GRANT
REVOKE
COMMIT
ROLLBACK
Credit - Internet