当前位置:网站首页>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
边栏推荐
- 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?
- Technical practice online fault analysis and solutions (Part 1)
- MPLS③
- Remember a lazy query error
- AI 助力艺术设计抄袭检索新突破!刘芳教授团队论文被多媒体顶级会议ACM MM录用
- Day05 table
- Solution to the problem that jsp language cannot be recognized in idea
- Related configuration commands of Huawei rip
- Customize redistemplate tool class
- Infiltration learning diary day19
猜你喜欢

Openbionics exoskeleton project introduction | bciduino community finishing

Huawei BFD and NQA

Pratique technique | analyse et solution des défaillances en ligne (Partie 1)

Who moved my code!

Conditional test, if, case conditional test statements of shell script

Feign implements dynamic URL

A malware detection method for checking PLC system using satisfiability modulus theoretical model

Should enterprises start building progressive web applications?

技術實踐|線上故障分析及解决方法(上)

中电资讯-信贷业务数字化转型如何从星空到指尖?
随机推荐
Delete all elements with a value of Y. The values of array elements and y are entered by the main function through the keyboard.
Description of setting items of Jerry [chapter]
I don't care about you. OKR or KPI, PPT is easy for you
Avoid playing with super high conversion rate in material minefields
C import Xls data method summary I (upload files and create Workbooks)
Difference between value and placeholder
Introduction to superresolution
Should enterprises start building progressive web applications?
MySQL - use of aggregate functions and group by groups
Maximum entropy model
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]
Summary of common tools and technical points of PMP examination
Some other configurations on Huawei's spanning tree
Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
Oracle database knowledge points (IV)
[turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration
MySQL deadly serial question 2 -- are you familiar with MySQL index?
Technical practice online fault analysis and solutions (Part 1)
Conditional statements of shell programming
Pesticide synergist - current market situation and future development trend