当前位置:网站首页>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 实现简单的登录注册模块以及个人用户中心
- [technology development-23]: application of DSP in future converged networks
- Vant implements a simple login registration module and a personal user center
- 网络安全-破解系统密码
- 【Camera专题】OTP数据如何保存在自定义节点中
- Query product cases - page rendering data
- 2022 spring "golden three silver four" job hopping prerequisites: Software Test interview questions (with answers)
- [shutter] animation animation (basic process of shutter animation | create animation controller | create animation | set value listener | set state listener | use animation values in layout | animatio
- 【数据挖掘】任务2:医学数据库MIMIC-III数据处理
- Wordinsert formula /endnote
猜你喜欢

Virtual list

High resolution network (Part 1): Principle Analysis

Analysis, use and extension of open source API gateway apisex

技术大佬准备就绪,话题C位由你决定

【数据挖掘】任务1:距离计算

A 30-year-old software tester, who has been unemployed for 4 months, is confused and doesn't know what to do?

Main features of transport layer TCP and TCP connection

Performance test | script template sorting, tool sorting and result analysis

Leetcode skimming questions_ Sum of two numbers II - enter an ordered array

Take you ten days to easily complete the go micro service series (I)
随机推荐
【Camera专题】Camera dtsi 完全解析
网络安全-NAT网络地址转换
VIM 9.0 is officially released! The execution speed of the new script can be increased by up to 100 times
STM32 - Application of external interrupt induction lamp
[keil5 debugging] debug is stuck in reset_ Handler solution
ByteDance data Lake integration practice based on Hudi
树形结构数据的处理
Network security - firewall
【数据挖掘】任务5:K-means/DBSCAN聚类:双层正方形
openresty 缓存
小程序开发黑马购物商城中遇到的问题
The testing process that software testers should know
His experience in choosing a startup company or a big Internet company may give you some inspiration
【Camera专题】HAL层-addChannel和startChannel简析
Leetcode skimming questions_ Sum of two numbers II - enter an ordered array
[data mining] task 4:20newsgroups clustering
Take you ten days to easily complete the go micro service series (I)
[error record] the shutter component reports an error (no directionality widget found. | richtext widgets require a directionality)
Reprint some Qt development experience written by great Xia 6.5
Analyzing several common string library functions in C language