当前位置:网站首页>MySQL第七次作业-更新数据
MySQL第七次作业-更新数据
2022-06-26 09:37:00 【m0_61961898】
1.更新教师表中所有记录,将津贴改为2000
update lingjinzhengteacher set
-> comm = 2000
-> ; 
- 更新教师表中教师号在T5到T8之间的记录,将津贴改为1500
mysql> update lingjinzhengteacher set -> comm = 1500 -> where no between "t5" and "t8"; 
4更新课程表中课时数不在45,50中的记录,将课时数改为25
mysql> update lingjinzheng_course set
-> class_hours=25 where class_hours not in (45,50);
更新教师表中工资不等于3000并且津贴不为空的记录,将津贴改为1000
mysql> update lingjinzhengteacher set
-> comm = 1000 where sal != 3000 and comm is not null;

- 更新教师表中工资等于2000并且岗位津贴大于等于1000的记录,将津贴改为500
mysql> update lingjinzhengteacher set
-> comm = 500
-> where sal = 2000 and comm >= 1000;

- 更新课程表中带课程名称以字母“M”开头并且课程名称中有“L”字母的记录,将课时数改为78
mysql> update lingjinzheng_course set
-> class_hours =78
-> where name like "m%" and name like "%1%";
- 更新授课表中教室在Y栋2楼的记录,将课程号改为C8,教师号改为T10
mysql> update lingjinzheng_schoolteaching set
-> course_no = "c8", teacher_no = "t10" where class_num like "y2%";
边栏推荐
- Detailed explanation of winsorflow quantum installation process
- Allocation de mémoire tas lors de la création d'objets
- SSM项目小例子,SSM整合图文详细教程
- C中字符串基本操作
- Full introduction to flexboxlayout (Google official flexible implementation of flow layout control)
- 从tf 1.x到tf 2.6(遇到的就过来更新更新)
- 美国总统签署社区安全法案以应对枪支问题
- In the fragment, the input method is hidden after clicking the confirm cancel button in the alertdialog (this is valid after looking for it on the Internet for a long time)
- Global and Chinese market of aluminum sunshade systems 2022-2028: Research Report on technology, participants, trends, market size and share
- From TF 1 X to TF 2.6 (update if you encounter it)
猜你喜欢

exec系列函数(execl、execlp、execle、execv、execvp)使用

Basic string operations in C

jar版本冲突问题解决

druid数据源实现后台监控

Little red book - Summary of internal sales spike project

3行3列整形二维数组,求对角之和

【LeetCode】59. 螺旋矩阵 II

Renesas electronics launched a complete intelligent sensor solution for Internet of things applications

方法区里面有什么——class文件、class文件常量池、运行时常量池

【Leetcode】76. Minimum covering substring
随机推荐
Threadmode interpretation of eventbus
Mysql database operation commands (constantly updated)
What is the web SSH service port of wgcloud
Automated testing -- Introduction and example of pytest framework
The basis of C language grammar -- factoring by function applet
Redis master-slave replication in win10 system
Day 3 array, pre post, character space, keyword and address pointer
Battery historian analyzes battery consumption
Druid data source for background monitoring
Global and Chinese market of cryogenic bulk tanks 2022-2028: Research Report on technology, participants, trends, market size and share
Detailed explanation of winsorflow quantum installation process
Appium automation test foundation - mobile end test environment construction (II)
How to find and install the dependent libraries of Debian system
Little red book - Summary of internal sales spike project
Blog article index Summary - wechat games
Problems encountered in the application and development of Hongmeng and some roast
Basic string operations in C
What are the symbolic and direct references of the JVM
How to start the learning journey of webrtc native cross platform development?
【Leetcode】76. Minimum covering substring