Auto commit
This commit is contained in:
parent
8c0d6360a2
commit
70d5054036
@ -246,7 +246,7 @@ SET t.teacher_age = 36
|
||||
WHERE t.teacher_name = '王老师';
|
||||
|
||||
#5 tj11
|
||||
SELECT MAX(t.age)
|
||||
SELECT MAX(t.teacher_age)
|
||||
FROM tb_teacher t;
|
||||
|
||||
#6 tj12
|
||||
@ -258,8 +258,8 @@ where s.class_id = c.class_id AND c.teacher_id = t.teacher_id;
|
||||
CREATE VIEW v_teacher AS
|
||||
SELECT c.class_name, t.teacher_name, COUNT(*)
|
||||
FROM tb_teacher t, tb_student s, tb_class C
|
||||
where s.class_id = c.class_id AND c.teacher_id = t.teacher_id
|
||||
GROUP BY c.class_id;
|
||||
WHERE s.class_id = c.class_id AND c.teacher_id = t.teacher_id
|
||||
GROUP BY c.class_id, t.teacher_name;
|
||||
|
||||
#8
|
||||
DELIMITER $$
|
||||
|
Loading…
x
Reference in New Issue
Block a user