当前位置:网站首页>MySQL command (add, delete, check and modify)
MySQL command (add, delete, check and modify)
2022-07-28 22:29:00 【Crane sorrow_】
Preface : installed Mysql After configuration, the environment can run normally ; download Navicat Premium Installation can be operated .
One 、: Inquire about
1. Check everything select * from user where 1( Red characters are general characters )
2. Querying a user
select * from user where name=‘zeng8’ and password=’zmm123‘
3. The score is greater than 500
select * from user where score>500
4.name zeng_ Of
_ Represents any character (10 I can't get out ,8 and 9 Can come out )
% Represents one or more characters
select * from user where name like ‘zeng_’
select * from user where name like ‘zeng%
5. Query all users , from 1 Start , Intercept 2 strip
select * from user where 1 limit1,2
6. Query all users , Sort by score , Ascending acs , Descending desc
select * from user where 1 order by score asc
select * from user where 1 order by score desc
7. Query two fields
select name ,scorefrom user where 1
Two 、 Insert
1. word :
insert Insert
into To
user indicate
values value
2.insert into user(name,password,score)
values(‘zeng11’,‘zmm123’,120)
3. hold zeng8 Change your score to 2500
update user set score =2500 where name ='zeng8'
hold zeng_ Score change 2500 _ Arbitrary character
update user set score =2500 where name like 'zeng_'
3、 ... and 、 Delete
1.DELETE form user where id=5
Delete user in id by 5 The line of
边栏推荐
- Ordinary practice of JS DOM programming
- Mysql内置函数
- Leetcode integer exercises integer inversion
- Sword finger offer II 056. Sum of two nodes in a binary search tree (simple binary search tree DFS hash table double pointer iterator)
- winServer运维技术栈
- [leetcode] maximum depth of binary tree
- Changes in the history of oscilloscope development
- Sword finger offer II 064. magic Dictionary (medium dictionary tree string design)
- 98. Verify binary search tree (medium binary search tree DFS)
- SQL注入 Less34(POST型宽字节注入+布尔盲注)
猜你喜欢

Changes in the history of oscilloscope development

79. Word search (medium string array matrix backtracking)

HCIP(15)

什么是时间复杂度

Future trend of defi in bear market

npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...

mysql create语句能不能用来建立表结构并追加新的记录

What are the main functions and uses of LCR tester
![[CS231N]Lecture_2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_2:Image Classification pipelin

hcip实验(12)
随机推荐
HYDAC overflow valve db08a-01-c-n-500v
Sword finger offer II 056. Sum of two nodes in a binary search tree (simple binary search tree DFS hash table double pointer iterator)
2021年数学建模B组代码
Changes in the history of oscilloscope development
Soft exam network engineer
Lvs+keepalived high availability deployment practical application
Establishment of Ruiji takeout development environment
什么是时间复杂度
静态路由和缺省路由实验
Leetcode integer exercises integer inversion
HCIP(10)
array_ diff_ The method of not comparing array values when Assoc element is an array
[CS231N]Lecture_2:Image Classification pipelin
Form validation and cascading drop-down lists (multiple implementations)
2021数学建模B组练习
SQL注入 Less42(POST型堆叠注入)
Ruiji takeout - background login function development
ssh免密登陆
JS convert numbers to letters
How about the actual use effect of common source oscilloscope