0% found this document useful (0 votes)
17 views1 page

DML Commands

Uploaded by

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

DML Commands

Uploaded by

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

DML WORK SYNTAX EXAMPLE

COMMANDS
SELECT Retrieve select column1, select * from
data from column2, ... Student;
the from table_name;
database
INSERT Insert data • insert into • insert into
into a TABLE_NAME Student
table values (value1, values (4,
value2, value 3, ‘Carry’,
.... Value N); 104);
• insert into • insert into
table_name Student
(column_name_1, (Student_ID,
column_name_2, Name,
column_name_3, DeptID)
...) values (5,
values (value1, ‘Skye’, 105);
value2, value3,
...);

UPDATE updates update table_name update


single and set column1 = value1, Student
multiple column2 = value2, ... set Name =
columns as where condition; 'Rachel' where
per StudentId= 3;
requirement
DELETE Delete the delete from table_name delete from
existing where [condition]; Student
records where
from a table Student_ID = 5;

You might also like