当前位置:网站首页>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
边栏推荐
- Related configuration commands of Huawei rip
- Oracle database knowledge points that cannot be learned (III)
- Three layer switching ①
- SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
- Summary of common tools and technical points of PMP examination
- Solution to the problem that jsp language cannot be recognized in idea
- Jerry's modification setting status [chapter]
- Pesticide synergist - current market situation and future development trend
- Functions and arrays of shell scripts
- 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
猜你喜欢
![Cesiumjs 2022^ source code interpretation [8] - resource encapsulation and multithreading](/img/d2/99932660298b4a4cddd7e5e69faca1.png)
Cesiumjs 2022^ source code interpretation [8] - resource encapsulation and multithreading

0 basic learning C language - nixie tube dynamic scanning display

Audio resource settings for U3D resource management

Maximum entropy model

SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution

Since the "epidemic", we have adhered to the "no closing" of data middle office services

Three layer switching ②

长文综述:大脑中的熵、自由能、对称性和动力学

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

Should enterprises start building progressive web applications?
随机推荐
Jerry's watch information type table [chapter]
How to use AHAS to ensure the stability of Web services?
Install the pit that the electron has stepped on
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
51 single chip microcomputer timer 2 is used as serial port
Lightweight Pyramid Networks for Image Deraining
Sequence sorting of basic exercises of test questions
Thinkphp6 integrated JWT method and detailed explanation of generation, removal and destruction
Human resource management online assignment
Openbionics robot project introduction | bciduino community finishing
Douban scoring applet Part-3
C import Xls data method summary IV (upload file de duplication and database data De duplication)
求esp32C3板子连接mssql方法
Pyrethroid pesticide intermediates - market status and future development trend
Infiltration learning diary day19
Force buckle day32
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Who moved my code!
String hash, find the string hash value after deleting any character, double hash
Huawei BFD and NQA