找回密码
 立即注册
gz_29songjianye +好友
这个人很懒什么都没写
听众
1
主题
0
金钱
12
个人名片
粉丝关注
还没有人关注TA
添加表情

5.9-作业-29班宋建业

已有 137 次阅读2021-5-9 17:58

1、select * from stu where class=1832;
2、select * from stu where chinese between 81 and 89 group by class having class=1833;
3、select * from stu limit 4,6;
4、select name,num from stu where english=98 and maths=77 group by class having class=1832;
5、select * from stu where class=1832 order by chinese desc;
6、select name from stu where chinese<80 and maths<80 group by class having class=1832 or class=1833;
7、select name,class from stu where chinese is null;
8、select name from stu where chinese<60;
9、select class,avg(maths) from stu group by class;
10、select class,sum(chinese) from stu group by class;
11、update stu set chinese=60 where chinese<60;
12、select age,name from stu where chinese>70 and maths>70 and english>70;
13、select name,class from stu where english>70 and (maths>60 or chinese>60);
14、select class,count(*) from stu group by class;
15、select class,count(*) from stu where maths>80 group by class;
17、alter table stu add (sex int(20),height int(20),weight int(20));

全部作者的其他最新日志

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册