当前位置:网站首页>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
边栏推荐
- Conditional test, if, case conditional test statements of shell script
- 7.1 learning content
- Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
- LeetCode 168. Detailed explanation of Excel list name
- When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
- What are the advantages and disadvantages of data center agents?
- 技術實踐|線上故障分析及解决方法(上)
- 51 single chip microcomputer timer 2 is used as serial port
- 机器学习基础:用 Lasso 做特征选择
- GUI application: socket network chat room
猜你喜欢

Gee: create a new feature and set corresponding attributes

MySQL introduction - functions (various function statistics, exercises, details, tables)

Force buckle day32

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).

Openbionics exoskeleton project introduction | bciduino community finishing

Feign implements dynamic URL

在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习

技术实践|线上故障分析及解决方法(上)

Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
![After listening to the system clear message notification, Jerry informed the device side to delete the message [article]](/img/0c/52816b75eb702c7c63966578ab4969.jpg)
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]
随机推荐
Conditional statements of shell programming
Force buckle day32
Feign implements dynamic URL
Force deduction solution summary 1189- maximum number of "balloons"
Should enterprises start building progressive web applications?
What are the advantages and disadvantages of data center agents?
Three layer switching ②
Ceramic metal crowns - current market situation and future development trend
Long article review: entropy, free energy, symmetry and dynamics in the brain
技術實踐|線上故障分析及解决方法(上)
MySQL - use of aggregate functions and group by groups
Characteristics of ginger
Huawei cloud micro certification Huawei cloud computing service practice has been stable
求esp32C3板子连接mssql方法
Writeup (real questions and analysis of ciscn over the years) of the preliminary competition of national college students' information security competition
Sequence sorting of basic exercises of test questions
在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习
Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page
Since the "epidemic", we have adhered to the "no closing" of data middle office services
C import Xls data method summary II (save the uploaded file to the DataTable instance object)