当前位置:网站首页>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%';
边栏推荐
- What are the contents of Oracle OCP and MySQL OCP certification exams?
- P1825 [USACO11OPEN]Corn Maze S
- SSH,NFS,FTP
- My meeting of OA project (query)
- Use index to optimize SQL query "suggestions collection"
- Winter vacation homework & Stamp cutting
- The effective condition of MySQL joint index and the invalid condition of index
- Neo eco technology monthly | help developers play smart contracts
- One click deployment of lamp and LNMP scripts is worth having
- idea快捷键 alt实现整列操作
猜你喜欢
Excel delete blank lines
In the first year of L2, the upgrade of arbitrum nitro brought a more compatible and efficient development experience
Mysql/mariadb (Galera multi master mode) cluster construction
Cadence(十)走线技巧与注意事项
My meeting of OA project (meeting seating & submission for approval)
Xshell batch send command to multiple sessions
Solve the problem of C # calling form controls across threads
【数据库 】GBase 8a MPP Cluster V95 安装和卸载
Sub Chocolate & paint area
Spark scheduling analysis
随机推荐
基于C语言设计的换乘指南打印系统
海内外媒体宣发自媒体发稿要严格把握内容关
Implementation of Prometheus web authentication and alarm
Study notes of automatic control principle --- stability analysis of control system
Logic of data warehouse zipper table
解决C#跨线程调用窗体控件的问题
Flutter upgrade 2.10
Oracle 19C OCP 1z0-082 certification examination question bank (24-29)
Mycat2 sub database and sub table
File management file system based on C #
Flutter custom player progress bar
Oracle 19C OCP 1z0-082 certification examination question bank (42-50)
pl/sql之集合-2
Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
SSH,NFS,FTP
Mysql database connection / query index and other common syntax
【加密周报】加密市场有所回温?寒冬仍未解冻 盘点上周加密市场发生的重大事件
Automation and disconnection monitoring of video addition
Recurrence of SQL injection vulnerability in the foreground of a 60 terminal security management system
KV database based on raft consensus protocol