当前位置:网站首页>Embedded database development programming (V) -- DQL
Embedded database development programming (V) -- DQL
2022-07-05 05:07:00 【Light chasing rain】
List of articles
One 、 Data sets

Two 、 Query log
select field1,field2,…fieldn… from Table name [where Conditions ]
select*from Table name [where Conditions ]
3、 ... and 、 Query non duplicate records
- select distinct Field from Table name
- select distinct name from students;//4 Query students with different names ;
- select distinct name,age from students;// Query students with different names and ages
- distinct Must be placed at the beginning
- distinct You can only use fields that need to be de duplicated
- distinct When removing multiple fields , The meaning is : Only when several fields are repeated at the same time can they be filtered .

Four 、 Conditions of the query
select Field from Table name where Conditions ; select*from student where sex=' male ’and age>20; // Query gender is male , And older than 20
where The following conditions can be used >、<、>=、<=、!= And other comparison operators , Between multiple conditions, you can use or、and And so on




5、 ... and 、 Sort and limit
5.1 Sort


5.2 Limit

6、 ... and 、 polymerization

6.1 Aggregate functions



7、 ... and 、 Multi-table query

8、 ... and 、 Table joins



边栏推荐
- UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
- Ue4/ue5 illusory engine, material chapter, texture, compression and memory compression and memory
- AutoCAD - lengthening
- Flink cluster configuration
- This article is good
- Pdf to DWG in CAD
- Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
- Lua GBK and UTF8 turn to each other
- AutoCAD - feature matching
- AutoCAD - scaling
猜你喜欢

54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●

Ue4/ue5 illusory engine, material chapter, texture, compression and memory compression and memory

AutoCAD - graphic input and output

AutoCAD - set layer

Data is stored in the form of table

小程序直播+电商,想做新零售电商就用它吧!

"Measuring curve length" of CAD dream drawing

UE fantasy engine, project structure

C4D simple cloth (version above R21)

Autocad-- dynamic zoom
随机推荐
Cocos2dx Lua registers the touch event and detects whether the click coordinates are within the specified area
xss注入
被舆论盯上的蔚来,何时再次“起高楼”?
小程序直播+电商,想做新零售电商就用它吧!
"Measuring curve length" of CAD dream drawing
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
Animation
Emlog blog theme template source code simple good-looking responsive
Time format conversion
Lua GBK and UTF8 turn to each other
AutoCAD - command repetition, undo and redo
Detailed explanation of the ranking of the best universities
Listview is added and deleted at the index
Unity sends messages and blocks indecent words
2021-10-29
Dotween usage records ----- appendinterval, appendcallback
cocos2dx_ Lua card flip
On-off and on-off of quality system construction
Unity parallax infinite scrolling background
C # perspective following