Sql-Lab 3 DML PDF
Sql-Lab 3 DML PDF
Sql-Lab 3 DML PDF
DML Queries
Instructor: Bidur Devkota
14th Sept 2020
1
1. INSERT
Syntax:
SELECT [column_name(s)] from [table_name] where [condition]
Example:
select name,roll from students;
2
SELECT * FROM students WHERE department LIKE 'c%';
SELECT * FROM students LIMIT 2;
3. DELETE
Syntax 1:
DELETE from [table_name] where [condition to be specified]
Syntax:
4. UPDATE
Syntax:UPDATE [table_name] SET [col1 = val1, col2 = val2,...]
where [condition to be specified]
UPDATE students SET name = 'Ravi' where roll =1;
3
Task:
Submission:
1. Title: 3. DML Queries.
2. Theory: Explain about the related queries( syntax, Descriptions)
3. Observations: Queries you run and their screenshot.
4. Conclusion
Note:
1. Submit a file with name <3_DML_Queries_ROLL_NAME.pdf>
For example student ‘Ram’ with roll number ‘100’ should send a file named:
3_DML_Queries_100_Ram.pdf
2. Copying will be marked ZERO.
3. Send as email attachment to [email protected]
4. Email Subject: 3. DML Queries