当前位置:网站首页>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
边栏推荐
- IIS数据转换问题16bit转24bit
- @MapperScan与@Mapper
- Class loading process of JVM
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
- 山大网安靶场实验平台项目—个人记录(四)
- How to uninstall easyton
- MySQL practical skills
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
- uIP1.0 主动发送的问题理解
- Reflection on the performance of some OpenGL operations in the past
猜你喜欢
基于pytorch搭建GoogleNet神经网络用于花类识别
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
[webrtc] add x264 encoder for CEF / Chromium
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
如何在BNB鏈上創建BEP-20通證
精简CUDA教程——CUDA Driver API
@Mapperscan and @ mapper
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Building googlenet neural network based on pytorch for flower recognition
随机推荐
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
深度学习环境搭建步骤—gpu
kibana 报错 server is not ready yet 可能的原因
uIP1.0 主动发送的问题理解
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
Scrum Patterns之理解各种团队模式
Easy mock local deployment (you need to experience three times in a crowded time. Li Zao will do the same as me. Love is like a festival mock)
goroutine
ESP8266-入门第一篇
@Analysis of conditional on Web Application
Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
Prefer composition to inheritance
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
数据库查询 - 选课系统
Virtual machine performance monitoring and fault handling tools
MySQL数据库 - 数据库和表的基本操作(二)
5 minutes to achieve wechat cloud applet payment function (including source code)
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is