摘要:
1.触发器:对某个表进行(增/删/改)操作的前后如果希望触发某个特定的行为时,可以使用触发器,触发器用于定制用户对表的行进行(增/删/改)前后的行为 -- 触发器-- delimiter $$-- create trigger tr_star before insert on student for 阅读全文
摘要:
1.创建用户 create user 'lai'@'localhost' identified by '123';2.修改用户 rename user 'lai'@'localhost' to 'tong'@'localhost';3.删除用户 drop user 'tong'@'localhost 阅读全文
摘要:
18--查询各科成绩最高和最低分select count(course_id),max(num),min(num) from score group by course_id;19.按各科平均成绩从低到高和及格率的百分数从高到底排序select course_id,avg(num),sum(case 阅读全文