当前位置:网站首页>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
边栏推荐
- 51 MCU external interrupt
- MySQL deadly serial question 2 -- are you familiar with MySQL index?
- Pratique technique | analyse et solution des défaillances en ligne (Partie 1)
- Magical usage of edge browser (highly recommended by program ape and student party)
- 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
- Typescript basic knowledge sorting
- [turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration
- Difference between value and placeholder
- After listening to the system clear message notification, Jerry informed the device side to delete the message [article]
猜你喜欢

AI helps make new breakthroughs in art design plagiarism retrieval! Professor Liu Fang's team paper was employed by ACM mm, a multimedia top-level conference

Lightweight Pyramid Networks for Image Deraining

中电资讯-信贷业务数字化转型如何从星空到指尖?

Audio resource settings for U3D resource management

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

Huawei cloud micro certification Huawei cloud computing service practice has been stable

C import Xls data method summary II (save the uploaded file to the DataTable instance object)

Huawei rip and BFD linkage

Use classname to modify style properties

Install the pit that the electron has stepped on
随机推荐
Experimental animal models - current market situation and future development trend
Gee: create a new feature and set corresponding attributes
Huawei cloud micro certification Huawei cloud computing service practice has been stable
“疫”起坚守 保障数据中台服务“不打烊”
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
Which insurance products can the elderly buy?
Summary of common tools and technical points of PMP examination
mysql使用視圖報錯,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
Since the "epidemic", we have adhered to the "no closing" of data middle office services
Hash table, string hash (special KMP)
Stringutils and collectionutils
Cesiumjs 2022^ source code interpretation [8] - resource encapsulation and multithreading
Lightweight Pyramid Networks for Image Deraining
Some other configurations on Huawei's spanning tree
Conditional test, if, case conditional test statements of shell script
A malware detection method for checking PLC system using satisfiability modulus theoretical model
Use classname to modify style properties
How can enterprises optimize the best cost of cloud computing?
MySQL statement learning record
Flex flexible layout, box in the middle of the page