Professional Documents
Culture Documents
(CS),PGDCA
Pratibha Rashmi
DML stands for Data Manipulation Language.
INSERT
UPDATE
DELETE
SELECT command is used to retrieve data
from the database.
OR
Example:
INSERT INTO tbstudent (`sid` int, `sname`
varchar(20), `city` varchar(20))
VALUES (`1`, `ABC`, `AGRA`);
UPDATE command is used to modify the
records present in existing table.
Example :
UPDATE tbstudent
SET city=‘Delhi’
WHERE sid=26;
DELETE command is used to delete some or
all records from the existing table.
It deletes all the records from a table.
Syntax:
DELETE FROM <table_name> WHERE
<condition>;
Example :
DELETE FROM tbstudent
WHERE sid = 33;
*NOTE: If we does not write the WHERE
condition, then all rows will get deleted.