Professional Documents
Culture Documents
Lagraoui Mohamed Amine Lab 5
Lagraoui Mohamed Amine Lab 5
Lagraoui Mohamed Amine Lab 5
1. Target
2. Related knowledge
Update :
UPDATE table_name
SET column_name1 = new-value1,
column_name2=new-value2, ...
[WHERE Clause]
Delete :
DELETE FROM table_name WHERE condition;
3. Contents:
Note: all string and date/datetime type values should have ’’:
’James’ ’2001-03-22’
[Write SQL commands/statements and submit statements in a document file]
--1)Insert a new Student with student number(Id): s111, name: Machel, gender:M, birthday:2001-
03-22, other columns are NULL.
Insert a new Student with student number(Id): s112, name: Mary, gender:F, other columns are
NULL.
[Note: use INSERT INTO]
--2)Insert a new Course with course number(Id): c121, name: Machine Learning, credit: 3.5;
[Note: use INSERT INTO]
--3)Change Machel’s gender to F and Sphone to 155512345;
[Note: use UPDATE]