当前位置:网站首页>MySQL数据库 - 数据库和表的基本操作(二)
MySQL数据库 - 数据库和表的基本操作(二)
2022-04-23 19:28:00 【x 心 动】
仅供参考:
第1关:插入数据
USE Company;
#请在此处添加实现代码
########## 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;
第2关:更新数据
USE Company;
#请在此处添加实现代码
########## 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;
第3关:删除数据
USE Company;
#请在此处添加实现代码
########## Begin ##########
########## delete the value ##########
delete FROM tb_emp where Salary>3000;
########## End ##########
SELECT * FROM tb_emp;
版权声明
本文为[x 心 动]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45623072/article/details/124055511
边栏推荐
- How to select the third-party package of golang
- All table queries and comment description queries of SQL Server
- ArcMap publishing slicing service
- 坐标转换WGS-84 转 GCJ-02 和 GCJ-02转WGS-84
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
- DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
- The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
- Machine learning catalog
- C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
- Redis core technology and practice 1 - start with building a simple key value database simplekv
猜你喜欢

MFCC: Mel频率倒谱系数计算感知频率和实际频率转换

SQL常用的命令

命令-sudo

JVM的类加载过程

Class loading mechanism

ESP8266-入门第一篇

Audio signal processing and coding - 2.5.3 the discrete cosine transform

No, some people can't do the National Day avatar applet (you can open the traffic master and earn pocket money)

Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es

On the forced conversion of C language pointer
随机推荐
ArcMap publishing slicing service
The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
An example of using JNI to directly access surface data
山大网安靶场实验平台项目-个人记录(五)
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
5 minutes to achieve wechat cloud applet payment function (including source code)
Use of fluent custom fonts and pictures
Codeforces Round #784 (Div. 4)
[report] Microsoft: application of deep learning methods in speech enhancement
Machine learning catalog
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
openlayers draw矩形
Class loading process of JVM
Matlab 2019 installation of deep learning toolbox model for googlenet network
NiO related Basics
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
SSDB foundation 2
MySQL syntax collation (2)