当前位置:网站首页>C language and SQL Server database technology
C language and SQL Server database technology
2022-07-25 14:24:00 【yushang_ zhang】
Fuzzy query and aggregate function query
One 、 use like Fuzzy query
1.like: image ....... equally
2. use like Fuzzy query can be done
3. Fuzzy query wildcard
Underline _ Match a character
% Match characters of any length
[ ] One character in the specified range ,[1-8] [a-z] [A-Z] [ Jin , package ]
[^] Any character that is not within the specified range
Two 、 Query in scope
1. Use between.....and
a、between 20 and 30
b、between '1991-01-02' and '1992-03-05'
c、 You can set the numerical range , You can also set the date range
d、 Include the beginning , It also includes the end
e、 Can pass not between....and To set the reverse operation
2. Use in Query data in a limited range
a、in(22,33,44)
b、in('aa','bb','cc')
c、not in(22,33,44)
3、 ... and 、 Aggregate functions
1. Aggregate function is mainly used for statistical query
2. The aggregate function returns only one value , Therefore, it cannot be displayed directly with columns that return multiple rows
3.sum()
4.avg() averaging , Null values are ignored , for example : Ask the average score of passing students
5.max()/ min() Find the maximum and minimum , It can be used to get the highest score and the lowest score
6.count() Number of Statistics , Null values are ignored , You can count primary key columns or count(*) Realization
7. One sql Multiple aggregate functions can be used in queries , For example, query the highest and lowest scores of the class
边栏推荐
- The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
- RuntimeError: CUDA out of memory(已解决)[通俗易懂]
- Data analysis business core
- 实现一个家庭安防与环境监测系统(二)
- Structure size
- 基于PaddleOCR开发uni-app离线身份证识别插件
- CDA level1 double disk summary
- Matplotlib data visualization three minutes entry, half an hour enchanted?
- thymeleaf通过样式控制display是否显示
- thymeleaf设置disabled
猜你喜欢

Doris学习笔记之与其他系统集成

2271. Maximum number of white bricks covered by blanket ●●

Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount

It is predicted that 2021 will accelerate the achievement of super automation beyond RPA

【口才】谈判说服技巧及策略

OKA通证权益解析,参与Okaleido生态建设的不二之选

飞沃科技IPO过会:年营收11.3亿 湖南文旅与沅澧投资是股东

疫情之下,生物医药行业或将迎来突破性发展

A small part is exposed on one or both sides of the swiper

Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
随机推荐
Opencv video tracking "suggestions collection"
Idea error failed to determine a suitable driver class
Under the epidemic, the biomedical industry may usher in breakthrough development
Numpy basic package for data analysis
CDA level Ⅰ 2021 new version simulation question 1 (with answers)
CDA level1 double disk summary
Doris learning notes integration with other systems
手把手教你申请SSL证书
51单片机学习笔记(1)
Paddlenlp's UIE relationship extraction model [executive relationship extraction as an example]
Problems and extensions of the monocular depth estimation model featdepth in practice
Introduction to PHP
CTS测试介绍(面试怎么介绍接口测试)
MySQL table operation
新唐NUC980设置DHCP或者静态IP
基于浏览器的分屏阅读
Leetcode 205. isomorphic string (2022.07.24)
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part 2)
Throwing OutOfMemoryError “Could not allocate JNI Env“
网络安全应急响应技术实战指南(奇安信)