当前位置:网站首页>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
边栏推荐
- Introduction to unity shader essentials reading notes Chapter III unity shader Foundation
- Gnupg website
- Huawei cloud micro certification Huawei cloud computing service practice has been stable
- mysql使用视图报错,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
- Install the pit that the electron has stepped on
- 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?
- Jerry's modification setting status [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
- Conditional statements of shell programming
- Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
猜你喜欢
Huawei rip and BFD linkage
Maximum likelihood method, likelihood function and log likelihood function
CLP information - how does the digital transformation of credit business change from star to finger?
Do you know the eight signs of a team becoming agile?
be based on. NETCORE development blog project starblog - (14) realize theme switching function
Openbionics exoskeleton project introduction | bciduino community finishing
Pyinstaller packaging py script warning:lib not found and other related issues
Feign implements dynamic URL
Lightweight Pyramid Networks for Image Deraining
I don't care about you. OKR or KPI, PPT is easy for you
随机推荐
Solution of cursor thickening
7.1 learning content
Since the "epidemic", we have adhered to the "no closing" of data middle office services
How to set the response description information when the response parameter in swagger is Boolean or integer
C import Xls data method summary IV (upload file de duplication and database data De duplication)
Summary of JWT related knowledge
Stringutils and collectionutils
求esp32C3板子连接mssql方法
Remember a lazy query error
Introduction to unity shader essentials reading notes Chapter III unity shader Foundation
ThinkPHP uses redis to update database tables
Three layer switching ①
“疫”起坚守 保障数据中台服务“不打烊”
Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".
Luogu p1309 Swiss wheel
Openbionics exoskeleton project introduction | bciduino community finishing
Delete all elements with a value of Y. The values of array elements and y are entered by the main function through the keyboard.
机器学习基础:用 Lasso 做特征选择
Jerry's watch information type table [chapter]
Mobile phone battery - current market situation and future development trend