当前位置:网站首页>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
边栏推荐
- 中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
- AutoCAD - Center zoom
- Kali 2018 full image download
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- 中国金刚烷行业研究与投资预测报告(2022版)
- #775 Div.1 B. Integral Array 数学
- Leetcode word search (backtracking method)
- Django reports an error when connecting to the database. What is the reason
- Unity ugui source code graphic
- "Measuring curve length" of CAD dream drawing
猜你喜欢
随机推荐
Unity writes timetables (without UI)
Lua determines whether the current time is the time of the day
2022/7/1学习总结
AutoCAD -- dimension break
Unity parallax infinite scrolling background
UE fantasy engine, project structure
cocos_ Lua loads the file generated by bmfont fnt
AutoCAD - Document Management
Pause and resume of cocos2dx Lua scenario
C4D simple cloth (version above R21)
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
AutoCAD - continuous annotation
Unity intelligent NPC production -- pre judgment walking (method 1)
Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
AutoCAD - command repetition, undo and redo
Unity enables mobile phone vibration
Time format conversion
Database under unity
Cocos2dx Lua registers the touch event and detects whether the click coordinates are within the specified area
Simple modal box