当前位置:网站首页>DQL basic operation
DQL basic operation
2022-07-03 01:52:00 【Xu Feng &】
Alias
select * from indicate as Alias
// It's OK not to as
duplicate removal
select distinct Field name ( Can be all ) from Table name ;
The query result is an expression
select price+10 from Table name ;
wildcard
%a The bad ending is a Of
%a% Query contains a Of
a% The query starts with a Of
use least For the minimum
select least();
Yes null It will not be more direct null
Sort query order by
select Field name
from Table name
order by Field one [desc]
// Default ascending order desc Descending ,order by In the last
Aggregate query
count The sum of the trips ( No matter null)
sum The sum of the columns
max Maximum
min minimum value
avg Average
Group query
select Field name , Aggregate functions from Table name group by Grouping field having Grouping conditions
Add one at the end of paging query limit m,n; Important chapter m+1 Start checking n The bar is usually placed at the end of the statement
sql Execution order of
from-->where-->group by-->count()-->having--> perform -->select-->order by-->limit
边栏推荐
- Vant implements a simple login registration module and a personal user center
- Query product cases - page rendering data
- 转载收录6.5大侠写的部分Qt开发经验
- Function definition and call, this, strict mode, higher-order function, closure, recursion
- Reprint some Qt development experience written by great Xia 6.5
- 7-25 read numbers (loop switch)
- 传输层 TCP主要特点和TCP连接
- 深度(穿透)选择器 ::v-deep/deep/及 > > >
- Network security - man in the middle attack
- 网络安全-破解系统密码
猜你喜欢
LabVIEW安装第三方VISA软件后NI VISA失效
[error record] the shutter component reports an error (no directionality widget found. | richtext widgets require a directionality)
Huakaiyun (Zhiyin) | virtual host: what is a virtual host
Vant implements a simple login registration module and a personal user center
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait
View of MySQL
Niuniu's ball guessing game (dynamic planning + prefix influence)
STM32 - Application of external interrupt induction lamp
[data mining] task 2: mimic-iii data processing of medical database
The technology boss is ready, and the topic of position C is up to you
随机推荐
[error record] navigator operation requested with a context that does not include a naviga
Cloud native topic sorting (to be updated)
传输层 TCP主要特点和TCP连接
STM32 - GPIO input / output mode
Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day
The technology boss is ready, and the topic of position C is up to you
Analyzing several common string library functions in C language
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance o
High resolution network (Part 1): Principle Analysis
Why is it not recommended to use BeanUtils in production?
网络安全-openvas
Comment le chef de file gère - t - il l'équipe en cas d'épidémie? Contributions communautaires
Network security - Information Collection
【数据挖掘】任务3:决策树分类
Answers to ten questions about automated testing software testers must see
网络安全-动态路由协议RIP
Qtablewidget lazy load remaining memory, no card!
Smart management of Green Cities: Digital twin underground integrated pipe gallery platform
Vant implements a simple login registration module and a personal user center
疫情当头,作为Leader如何进行团队的管理?| 社区征文