当前位置:网站首页>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
边栏推荐
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- C # perspective following
- AutoCAD - full screen display
- "Measuring curve length" of CAD dream drawing
- PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
- AutoCAD - set layer
- Django reports an error when connecting to the database. What is the reason
- Emlog blog theme template source code simple good-looking responsive
- GameObject class and transform class of unity
- Magnifying glass effect
猜你喜欢
随机推荐
The first topic of ape Anthropology
PR first time
Understand encodefloatrgba and decodefloatrgba
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
Out and ref functions of unity
Magnifying glass effect
【Leetcode】1352. Product of the last K numbers
Unity writes timetables (without UI)
A three-dimensional button
Basic knowledge points
win下一键生成当日的时间戳文件
Number theoretic function and its summation to be updated
Emlog博客主题模板源码简约好看响应式
被舆论盯上的蔚来,何时再次“起高楼”?
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
#775 Div.1 B. Integral Array 数学
Ue4/ue5 illusory engine, material part (III), material optimization at different distances
mysql審計日志歸檔
Collapse of adjacent vertical outer margins
Judge the position of the monster in the role under unity3d