当前位置:网站首页>day06 作业--增删改查
day06 作业--增删改查
2022-07-26 08:41:00 【宁氓】

1.查询每个学生的姓名和平均成绩
select name,avg(score) from stu group by name;
2.查询成绩不及格学生的姓名
select distinct name from stu where score<60;
3.查询成绩最高的前三条数据
select * from stu order by score desc limit 0,3;
4.新增一条rose的数学成绩是50分的数据
insert into stu value(8,'rose',50,'数学');
5.修改jack的数学成绩为85
update stu set score=85 where name='jack' and sk='数学';
6.删除susanla的生物成绩的数据
delete from stu where name='susanla' and sk='生物';
7.查询名字中包含c的数据
select * from stu where name like '%c%';
边栏推荐
- Sub Chocolate & paint area
- TypeScript版加密工具PasswordEncoder
- One click deployment of lamp and LNMP scripts is worth having
- Web3 Games: current situation and future
- Leetcode and query question summary
- day06 作业--技能题6
- C#入门系列(三十一) -- 运算符重载
- Neo eco technology monthly | help developers play smart contracts
- Use index to optimize SQL query "suggestions collection"
- Oracle 19C OCP 1z0-082 certification examination question bank (24-29)
猜你喜欢

Spark scheduling analysis

海内外媒体宣发自媒体发稿要严格把握内容关

【数据库 】GBase 8a MPP Cluster V95 安装和卸载

sklearn 机器学习基础(线性回归、欠拟合、过拟合、岭回归、模型加载保存)
![[abstract base class inheritance, DOM, event - learning summary]](/img/0e/4c4ed97814d49d72a5994ce2a53c88.png)
[abstract base class inheritance, DOM, event - learning summary]

C Entry series (31) -- operator overloading

Excel delete blank lines

keepalived双机热备

KV database based on raft consensus protocol

Winter vacation homework & Stamp cutting
随机推荐
合工大苍穹战队视觉组培训Day5——机器学习,图像识别项目
Fluent custom popupmenubutton
Mycat2 deploy master-slave MariaDB
My meeting of OA project (meeting seating & submission for approval)
P1825 [USACO11OPEN]Corn Maze S
My meeting of OA project (query)
Fluent uses protobuf
Oracle 19C OCP 1z0-082 certification examination question bank (7-12)
Mysql8 dual master and dual slave +mycat2 read / write separation
sklearn 机器学习基础(线性回归、欠拟合、过拟合、岭回归、模型加载保存)
Poor English, Oracle OCP or MySQL OCP exam can also get a high score of 80 points
P3743 Kotori's equipment
Human computer interaction software based on C language
Xtrabackup appears' flush no '_ WRITE_ TO_ BINLOG TABLES‘: 1205 (HY000) Lock wait timeout exceeded;
Ueditot_ JSP SSRF vulnerability recurrence
Implementation of Prometheus web authentication and alarm
MySQL 8.0 OCP 1z0-908 certification examination question bank 1
解决C#跨线程调用窗体控件的问题
23.8 using the applicationrunner or commandlinerunner to implement applicationrunner and commandlinerunner
为什么要在时钟输出上预留电容的工位?