当前位置:网站首页>Common database statements in unity
Common database statements in unity
2022-07-05 04:52:00 【yaohuiyaoo】
1. Create database
create database Database name ;
2. View all databases
show databases;
3. Use ( Get into ) database
use Database name ;
4. Delete database
drop database Database name ;
5. View all tables in the current database
show tables;
6. Delete a table
drop table Table name ;
7. Insert data into the table
insert into Table name ( Field )value( Corresponding type data );
8. Update data that meets the conditions
update Table name set Field name = data where Field = data
Be careful :where The latter is the condition , Satisfy where The following data can be modified to where The previous data
9. Delete data
delete from Table name where Field = data ;
10. Look up all the data in the table
select * from Table name
11. Query the data of some fields in the table
select Field 1, Field 2 from Table name ;
12. Query some fields in the table that meet the conditions
select Field 1, Field 2 from Table name where Field = data
13. Query a field that is not empty
select *from Table name where Field is null;
14. Several fields can be found and one field is not empty
select Field 1, Field 2 from Table name where Field is null;
15 Query the data starting with a word
select * from Table name where Field like ’ word %‘;
16. You can find out if you meet one condition
select * from Table name where Field = data or Field = data ;
17. Query data that meets multiple conditions at the same time
select *from Table name where Field = data and Field = data ;
18. Query data in a certain interval
select * from Table name where Field between data and data
19. Query to remove duplicate data
select distinct( Field ) from Table name where Field = data
20. In ascending order of a certain data
select * from Table name order by Field
21. Multi column sorting : When the first data is the same, sort according to the second requirement
select *from Table name order by Field desc , Field asc;
22. Limited number of queries
select * from Table name limit 0,3
23. Query data ( Internal connection )
select Field , Field from Table name inner join Table name on Primary key = Foreign keys ;
24 The cartesian product
select *from Table name , Table name where Primary key = Foreign keys ;
25. Left connection
select from Table name left join Table name on Primary key = Foreign keys ;
26 Query the average score of a certain item
select avg( Field ) from Table name ;
27. Query the highest score of an item
select max( Field ) from Table name ;
28. Query the lowest score of a certain item
select min( Field ) from Table name ;
29 Total number of query data
select count() from Table name ;
30 Total query score
select sum( Field ) from Table name ;
31. Group query
select * from Table name group by Field ;
边栏推荐
- Rip notes [rip message security authentication, increase of rip interface measurement]
- 2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
- Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
- Matplotlib draws three-dimensional scatter and surface graphs
- mysql审计日志归档
- 54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
- On-off and on-off of quality system construction
- Research and investment forecast report of adamantane industry in China (2022 Edition)
- Emlog博客主题模板源码简约好看响应式
- AutoCAD - window zoom
猜你喜欢

Emlog博客主题模板源码简约好看响应式

CSDN body auto generate directory
![[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)](/img/1b/1fa2ebc9a6c5d271c9b39f5e508fb0.jpg)
[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)

Autocad-- dynamic zoom

Create a pyGame window with a blue background

3dsmax snaps to frozen objects

An article takes you to thoroughly understand descriptors

2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem

2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
![[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)](/img/92/937122b059b6f3a91ae0e0858685e7.jpg)
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
随机推荐
中国针状焦行业发展研究与投资价值报告(2022版)
CSDN body auto generate directory
AutoCAD - continuous annotation
Autocad-- Real Time zoom
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
Matplotlib draws three-dimensional scatter and surface graphs
3dsmax common commands
Detailed explanation of the ranking of the best universities
【Leetcode】1352. 最后 K 个数的乘积
49 pictures and 26 questions explain in detail what is WiFi?
2021 electrician cup (the 12th "China Society of electrical engineering Cup" National Undergraduate electrician mathematical modeling) detailed ideas + codes + references
AutoCAD - Document Management
[Business Research Report] Research Report on male consumption trends in other economic times -- with download link
XSS injection
This article is good
[Chongqing Guangdong education] National Open University 2047t commercial bank operation and management reference test in autumn 2018
【acwing】837. Number of connected block points
Is $20billion a little less? Cisco is interested in Splunk?
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
Chapter 6 text processing tools for shell programming (awk)