当前位置:网站首页>Mysql database - basic operation of database and table (II)
Mysql database - basic operation of database and table (II)
2022-04-23 19:42:00 【X heart】
For reference only :
The first 1 Turn off : insert data
USE Company;
# Please add the implementation code here
########## Begin ##########
########## bundle insert the value ##########
insert into tb_emp(Id,Name,DeptId,Salary)
values(1,'Nancy',301,2300)
,(2,'Tod',303,5600)
,(3,'Carly',301,3200);
########## End ##########
SELECT * FROM tb_emp;
The first 2 Turn off : Update data
USE Company;
# Please add the implementation code here
########## Begin ##########
########## update the value ##########
update tb_emp
set Name="Nancy",DeptId=301,Salary =2300
where Id=1;
update tb_emp
set Name="Tracy",DeptId=302,Salary =4300
where Id=3;
########## End ##########
SELECT * FROM tb_emp;
The first 3 Turn off : Delete data
USE Company;
# Please add the implementation code here
########## Begin ##########
########## delete the value ##########
delete FROM tb_emp where Salary>3000;
########## End ##########
SELECT * FROM tb_emp;
版权声明
本文为[X heart]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231927030977.html
边栏推荐
- Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
- Audio signal processing and coding - 2.5.3 the discrete cosine transform
- 音频编辑生成软件
- A brief explanation of golang's keyword "competence"
- Efficient serial port cyclic buffer receiving processing idea and code 2
- Audio editing generation software
- 精简CUDA教程——CUDA Driver API
- 机器学习目录
- How to use go code to compile Pb generated by proto file with protoc Compiler Go file
- MySQL syntax collation (5) -- functions, stored procedures and triggers
猜你喜欢
[webrtc] add x264 encoder for CEF / Chromium
Audio signal processing and coding - 2.5.3 the discrete cosine transform
基于pytorch搭建GoogleNet神经网络用于花类识别
MySQL syntax collation (4)
Zero cost, zero foundation, build profitable film and television applet
Decompile and get the source code of any wechat applet - just read this (latest)
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
An idea of rendering pipeline based on FBO
antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
随机推荐
Main differences between go and PHP
How to uninstall easyton
[报告] Microsoft :Application of deep learning methods in speech enhancement
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
Esp8266 - beginner level Chapter 1
Kibana reports an error server is not ready yet. Possible causes
[webrtc] add x264 encoder for CEF / Chromium
深度学习——特征工程小总结
如何在BNB链上创建BEP-20通证
Go modules daily use
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
对普通bean进行Autowired字段注入
MySQL syntax collation (5) -- functions, stored procedures and triggers
Go three ways to copy files
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Building googlenet neural network based on pytorch for flower recognition
PHP reference manual string (7.2000 words)
Kubernetes getting started to proficient - install openelb on kubernetes
Audio signal processing and coding - 2.5.3 the discrete cosine transform
Strange passion