当前位置:网站首页>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%';
边栏推荐
- 23.10 Admin features
- Oracle 19C OCP 1z0-082 certification examination question bank (24-29)
- P3743 kotori的设备
- Cadence (x) wiring skills and precautions
- The data read by Flink Oracle CDC is always null. Do you know
- node的js文件引入
- Oracle 19C OCP 1z0-083 question bank (7-12)
- Mysql database connection / query index and other common syntax
- Pan micro e-cology8 foreground SQL injection POC
- [untitled]
猜你喜欢
随机推荐
IC's first global hacking bonus is up to US $6million, helping developers venture into web 3!
Xshell batch send command to multiple sessions
Flutter text is left aligned with no blank space in the middle
P1825 [USACO11OPEN]Corn Maze S
Study notes of automatic control principle -- dynamic model of feedback control system
23.10 Admin features
【数据库 】GBase 8a MPP Cluster V95 安装和卸载
Introduction to AWD attack and defense competition
Please tell me if there is any way to increase the write out rate when the Flink SQL client is in the sink table. When synchronizing through sink table
[suggestions collection] summary of MySQL 30000 word essence - locking mechanism and performance tuning (IV) [suggestions collection]
Solve the problem of C # calling form controls across threads
The lessons of 2000. Web3 = the third industrial revolution?
sklearn 机器学习基础(线性回归、欠拟合、过拟合、岭回归、模型加载保存)
Use index to optimize SQL query "suggestions collection"
Leetcode and query question summary
Foundry tutorial: writing scalable smart contracts in various ways (Part 1)
One click deployment of lamp and LNMP scripts is worth having
[untitled]
Oracle 19C OCP 1z0-082 certification examination question bank (19-23)
23.8 using the applicationrunner or commandlinerunner to implement applicationrunner and commandlinerunner

![[untitled]](/img/3e/fb7c4d901643e6ea88a7d90ead045c.png)






