当前位置:网站首页>Day06 operation -- addition, deletion, modification and query
Day06 operation -- addition, deletion, modification and query
2022-07-26 08:52:00 【Ning Meng】

1. Check the name and average score of each student
select name,avg(score) from stu group by name;
2. Check the names of students who failed in the exam
select distinct name from stu where score<60;
3. Query the top three data with the highest scores
select * from stu order by score desc limit 0,3;
4. Add a new one rose My math score is 50 Minute data
insert into stu value(8,'rose',50,' mathematics ');
5. modify jack My math score is 85
update stu set score=85 where name='jack' and sk=' mathematics ';
6. Delete susanla Biological performance data
delete from stu where name='susanla' and sk=' biological ';
7. The query name contains c The data of
select * from stu where name like '%c%';
边栏推荐
- 有限元学习知识点备案
- Cve-2021-3156 duplicate of sudo heap overflow privilege raising vulnerability
- Oracle 19C OCP 1z0-083 question bank (7-12)
- Deploy prometheus+grafana monitoring platform
- 数据库操作技能7
- CSDN TOP1“一个处女座的程序猿“如何通过写作成为百万粉丝博主?
- Uni app simple mall production
- 正则表达式:判断是否符合USD格式
- Ueditot_ JSP SSRF vulnerability recurrence
- Sklearn machine learning foundation (linear regression, under fitting, over fitting, ridge regression, model loading and saving)
猜你喜欢

Foundry tutorial: writing scalable smart contracts in various ways (Part 1)

Solve the problem of C # calling form controls across threads

基于C语言的哈夫曼转化软件

Mysql8 dual master and dual slave +mycat2 read / write separation

Sub Chocolate & paint area

C Entry series (31) -- operator overloading

C#入门系列(三十一) -- 运算符重载

03异常处理,状态保持,请求钩子---04大型项目结构与蓝图

My meeting of OA project (meeting seating & submission for approval)

Mysql/mariadb (Galera multi master mode) cluster construction
随机推荐
Xtrabackup appears' flush no '_ WRITE_ TO_ BINLOG TABLES‘: 1205 (HY000) Lock wait timeout exceeded;
sklearn 机器学习基础(线性回归、欠拟合、过拟合、岭回归、模型加载保存)
Arbitrum launched the anytrust chain to meet the diverse needs of ecological projects
2000年的教训。web3是否=第三次工业革命?
Hegong sky team vision training Day6 - traditional vision, image processing
[search topics] flood coverage of search questions after reading the inevitable meeting
[abstract base class inheritance, DOM, event - learning summary]
Neo eco technology monthly | help developers play smart contracts
Oracle 19C OCP 1z0-082 certification examination question bank (30-35)
TypeScript版Snowflake主键生成器
Excel delete blank lines
Ueditot_ JSP SSRF vulnerability recurrence
数据库操作 题目一
MySQL 8.0 OCP (1z0-908) has a Chinese exam
【搜索专题】看完必会的搜索问题之洪水覆盖
SSH,NFS,FTP
Review notes of Microcomputer Principles -- zoufengxing
Typescript snowflake primary key generator
CIS 2020 - alternative skills against cloud WAF (pyn3rd)
The effective condition of MySQL joint index and the invalid condition of index