当前位置:网站首页>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
边栏推荐
- Functions and arrays of shell scripts
- 长文综述:大脑中的熵、自由能、对称性和动力学
- Should enterprises start building progressive web applications?
- MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
- Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
- Cancer biopsy instruments and kits - market status and future development trends
- be based on. NETCORE development blog project starblog - (14) realize theme switching function
- Three layer switching ①
- Audio resource settings for U3D resource management
- 在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习
猜你喜欢

Openbionics exoskeleton project introduction | bciduino community finishing

长文综述:大脑中的熵、自由能、对称性和动力学
![Setting function of Jerry's watch management device [chapter]](/img/0b/8fab078e1046dbc22aa3327c49faa7.jpg)
Setting function of Jerry's watch management device [chapter]

Feign implements dynamic URL

Conditional statements of shell programming

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

ES6 deletes an attribute in all array objects through map, deconstruction and extension operators

Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL

I don't care about you. OKR or KPI, PPT is easy for you

Pyinstaller packaging py script warning:lib not found and other related issues
随机推荐
Characteristics of ginger
Setting function of Jerry's watch management device [chapter]
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
Since the "epidemic", we have adhered to the "no closing" of data middle office services
Description of setting items of Jerry [chapter]
Force deduction solution summary 1189- maximum number of "balloons"
LeetCode 168. Detailed explanation of Excel list name
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
ThinkPHP uses redis to update database tables
LeetCode226. Flip binary tree
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).
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)
AI 助力艺术设计抄袭检索新突破!刘芳教授团队论文被多媒体顶级会议ACM MM录用
How programmers find girlfriends through blind dates
How can enterprises optimize the best cost of cloud computing?
Day05 branch and loop (II)
技术实践|线上故障分析及解决方法(上)
Logical operator, displacement operator
Functions and arrays of shell scripts