当前位置:网站首页>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 asduplicate 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
- Smart management of Green Cities: Digital twin underground integrated pipe gallery platform
- Take you ten days to easily complete the go micro service series (II)
- Network security ACL access control list
- Technology sharing | Frida's powerful ability to realize hook functions
- LabVIEW安装第三方VISA软件后NI VISA失效
- 传输层 TCP主要特点和TCP连接
- 技术大佬准备就绪,话题C位由你决定
- Performance test | script template sorting, tool sorting and result analysis
- [leetcode] 797 and 1189 (basis of graph theory)
猜你喜欢
![[leetcode] 797 and 1189 (basis of graph theory)](/img/2a/9c0a904151a17c2d23dea9ad04dbfe.jpg)
[leetcode] 797 and 1189 (basis of graph theory)

Smart management of Green Cities: Digital twin underground integrated pipe gallery platform

STM32 - vibration sensor control relay on

Query product cases - page rendering data
![[camera topic] turn a drive to light up the camera](/img/d3/7aabaa5c75813abc4a43820b4c3706.png)
[camera topic] turn a drive to light up the camera

In the face of difficult SQL requirements, HQL is not afraid

STM32 - switch of relay control lamp

A simple tool for analyzing fgui dependencies
![[data mining] task 4:20newsgroups clustering](/img/76/af1d1338c468ec4825fe12816b84ff.png)
[data mining] task 4:20newsgroups clustering

Technology sharing | Frida's powerful ability to realize hook functions
随机推荐
[North Asia data recovery] data recovery case of raid crash caused by hard disk disconnection during data synchronization of hot spare disk of RAID5 disk array
小程序开发的部分功能
Pytest learning notes (12) -allure feature · @allure Step () and allure attach
Network security - Information Collection
C语言课程信息管理系统
Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait
【数据挖掘】任务4:20Newsgroups聚类
网络安全-openvas
Custom components, using NPM packages, global data sharing, subcontracting
【Camera专题】HAL层-addChannel和startChannel简析
Network security - talking about security threats
[Appendix 6 Application of reflection] Application of reflection: dynamic agent
网络安全-信息收集
Openresty cache
Vant implements a simple login registration module and a personal user center
[fluent] hero animation (hero animation use process | create hero animation core components | create source page | create destination page | page Jump)
转载收录6.5大侠写的部分Qt开发经验
2022 financial product revenue ranking
查询商品案例-页面渲染数据