当前位置:网站首页>SQL statement
SQL statement
2022-07-04 01:38:00 【Spring wind neon clothes】
INSERT
https://www.w3school.com.cn/sql/sql_insert.asp
INSERT INTO table_name ( Column 1, Column 2,…) VALUES ( value 1, value 2,…)
DELETE
https://www.w3school.com.cn/sql/sql_delete.asp
DELETE FROM The name of the table WHERE Column name = value
UPDATE
https://www.w3school.com.cn/sql/sql_update.asp
UPDATE The name of the table SET Column name = The new value WHERE Column name = Certain value
SELECT
https://www.w3school.com.cn/sql/sql_select.asp
SELECT Column name FROM The name of the table
Group query :GROUP BY
The content to be queried in group query should be statistical information
SELECT (1) as a, mode ,COUNT(*) FROM t_help WHERE user_id = ‘060c43ee7c11437785bd8b35f72c0649’ GROUP BY mode
stay select in , You can put direct content ,eg: (1) as a, There can be another query in brackets ,
And grouped fields , You have to find it out in the front
The joint query :LEFT JOIN
https://www.w3school.com.cn/sql/sql_join_left.asp
Through the common fields of the two tables , Jointly query all data
SELECT *
FROM table_name1
LEFT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
Common aggregate functions :
count() Count
sum() Sum up
avg() The average
max() Maximum
min() minimum value
边栏推荐
- be based on. NETCORE development blog project starblog - (14) realize theme switching function
- AI 助力艺术设计抄袭检索新突破!刘芳教授团队论文被多媒体顶级会议ACM MM录用
- 51 MCU external interrupt
- Three layer switching ②
- Msp32c3 board connection MSSQL method
- Day05 branch and loop (II)
- Openbionics exoskeleton project introduction | bciduino community finishing
- Huawei BFD and NQA
- Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?
- Maximum entropy model
猜你喜欢

Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".

Thinkphp6 integrated JWT method and detailed explanation of generation, removal and destruction

Gee: create a new feature and set corresponding attributes

Install the pit that the electron has stepped on

LeetCode226. Flip binary tree

How to use AHAS to ensure the stability of Web services?

2020-12-02 SSM advanced integration Shang Silicon Valley

Make drop-down menu

Some other configurations on Huawei's spanning tree

LeetCode 168. Detailed explanation of Excel list name
随机推荐
Cancer biopsy instruments and kits - market status and future development trends
Development of user-defined navigation bar in uniapp
51 single chip microcomputer timer 2 is used as serial port
Openbionics exoskeleton project introduction | bciduino community finishing
Huawei BFD and NQA
Force deduction solution summary 1189- maximum number of "balloons"
Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?
Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
Stringutils and collectionutils
使用dnSpy对无源码EXE或DLL进行反编译并且修改
Idsia & supsi & usi | continuous control behavior learning and adaptive robot operation based on Reinforcement Learning
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
What are the advantages and disadvantages of data center agents?
Day05 branch and loop (II)
Characteristics of ginger
Fundamentals of machine learning: feature selection with lasso
7.1 learning content
Function: write function fun to find s=1^k+2^k +3^k ++ The value of n^k, (the cumulative sum of the K power of 1 to the K power of n).
ES6 deletes an attribute in all array objects through map, deconstruction and extension operators
51 MCU external interrupt