当前位置:网站首页>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版)
- Cocos2dx screen adaptation
- 用 Jmeter 工具做个小型压力测试
- This article is good
- Generate filled text and pictures
- How to choose a panoramic camera that suits you?
- Unity check whether the two objects have obstacles by ray
- Ue4/ue5 illusory engine, material part (III), material optimization at different distances
- AutoCAD - Center zoom
- Unity find the coordinates of a point on the circle
猜你喜欢

LeetCode之单词搜索(回溯法求解)

PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低

Page countdown

UE4/UE5 虚幻引擎,材质篇(三),不同距离的材质优化

2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem

Pdf to DWG in CAD

用 Jmeter 工具做个小型压力测试

Unity ugui source code graphic

Redis 排查大 key 的4种方法,优化必备

AutoCAD - Center zoom
随机推荐
stm32Cubemx(8):RTC和RTC唤醒中断
数论函数及其求和 待更新
Sixth note
Rip notes [rip message security authentication, increase of rip interface measurement]
Unity3d learning notes
Unity sends messages and blocks indecent words
669. Prune binary search tree ●●
LeetCode之單詞搜索(回溯法求解)
2021-10-29
UE fantasy engine, project structure
3dsmax2018 common operations and some shortcut keys of editable polygons
win10虚拟机集群优化方案
Simple modal box
Judge the position of the monster in the role under unity3d
How to choose a panoramic camera that suits you?
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
Data is stored in the form of table
Generate filled text and pictures
Leetcode word search (backtracking method)
Research and investment forecast report of adamantane industry in China (2022 Edition)