当前位置:网站首页>MySQL seventh job - update data
MySQL seventh job - update data
2022-06-26 10:28:00 【m0_ sixty-one million nine hundred and sixty-one thousand eight】
1. Update all records in the teacher table , Change the allowance to 2000
update lingjinzhengteacher set
-> comm = 2000
-> ; 
- Update the teacher number in the teacher table T5 To T8 Between the records , Change the allowance to 1500
mysql> update lingjinzhengteacher set -> comm = 1500 -> where no between "t5" and "t8"; 
4 The number of class hours in the updated curriculum is not in 45,50 Records in , Change the number of class hours to 25
mysql> update lingjinzheng_course set
-> class_hours=25 where class_hours not in (45,50);
The salary in the updated teacher table is not equal to 3000 And the allowance is not empty , Change the allowance to 1000
mysql> update lingjinzhengteacher set
-> comm = 1000 where sal != 3000 and comm is not null;

- Update the salary in the teacher table equal to 2000 And the post allowance is greater than or equal to 1000 The record of , Change the allowance to 500
mysql> update lingjinzhengteacher set
-> comm = 500
-> where sal = 2000 and comm >= 1000;

- Update the course name in the course schedule with the letter “M” Start with... In the course name “L” A record of letters , Change the number of class hours to 78
mysql> update lingjinzheng_course set
-> class_hours =78
-> where name like "m%" and name like "%1%";
- Update the classroom in the lecture table Y building 2 Building records , Change the course number to C8, Change the teacher number to T10
mysql> update lingjinzheng_schoolteaching set
-> course_no = "c8", teacher_no = "t10" where class_num like "y2%";
边栏推荐
- echo $?
- 904. 水果成篮
- What are the symbolic and direct references of the JVM
- Servlet learning notes II
- Use of exec series functions (EXECL, execlp, execle, execv, execvp)
- Function run time
- Some problems to be considered when designing technical implementation scheme
- Introduction to stored procedure testing
- MySQL第五章总结
- Develop current learning objectives and methods
猜你喜欢

开发者,微服务架构到底是什么?

Call API interface to generate QR code of wechat applet with different colors

904. fruit baskets

How to change the QR code material color of wechat applet

首批12家企业入驻!广州首个集中展销老字号产品专柜开张

How to start the learning journey of webrtc native cross platform development?

MySQL第六次作业-查询数据-多条件

Reshape a two-dimensional array with 3 rows and 3 columns to find the sum of the diagonals

看我在Map<String, String>集合中,存入Integer类型数据

String constant pool, class constant pool, and runtime constant pool
随机推荐
Extracting public fragments from thymeleaf
Procedure Call Standard
创建对象的时候堆内存的分配
利用foreach循环二维数组
LSP 是什么
Cmake / set command
[binary search] 4 Find the median of two positive arrays
美国总统签署社区安全法案以应对枪支问题
Luogu 1146 coin flip
Global and Chinese market of amateur football helmets 2022-2028: Research Report on technology, participants, trends, market size and share
String constant pool, class constant pool, and runtime constant pool
MySQL第十四次作业--电子商城项目
Searchview click failure
Download MySQL database installation package website of each system and version
Standard implementation of streaming layout: a guide to flexboxlayout
MySQL第八次作业
Allocation of heap memory when creating objects
Control setting layout in linear layout_ Gravity doesn't work?
About multi table query of MySQL
Win10安装tensorflow-quantum过程详解