当前位置:网站首页>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%";
边栏推荐
- MySQL learning summary
- JVM的符号引用和直接引用是什么
- The basis of C language grammar -- factoring by function applet
- MySQL第五章总结
- thymeleaf中抽取公共片段
- How to start the learning journey of webrtc native cross platform development?
- Cento7.7 elk installation simple record
- 动态库连接 - 符号冲突 - 全局符号介入
- Get the clicked position in the recyclerview
- Hcia-dhcp experiment
猜你喜欢

國際化配置

The basis of C language grammar -- pointer (multidimensional array, function, summary) learning

904. fruit baskets

MySQL 13th job - transaction management

Record the handling of oom problems caused by too many threads at one time

MySQL第十四次作业--电子商城项目

904. 水果成篮

druid数据源实现后台监控

Redis master-slave replication in win10 system

MySQL第十一作業-視圖的應用
随机推荐
MySQL第五章总结
How do technicians send notifications?
瑞萨电子面向物联网应用推出完整的智能传感器解决方案
Control setting layout in linear layout_ Gravity doesn't work?
Retrofit common request methods and comments, post, get heard file upload
Battery historian analyzes battery consumption
Introduction to stored procedure testing
Get the clicked position in the recyclerview
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)
字符串常量池、class常量池和运行时常量池
Today's headline adaptation scheme code
MySQL 11th job - view application
Allocation de mémoire tas lors de la création d'objets
Crawler related articles collection: pyppeter, burpsuite
The basis of C language grammar -- factoring by function applet
Threading model in webrtc native
904. 水果成篮
Dialog centered
Recyclerview implements flow layout (LinearLayout with line wrap) (flexboxlayoutmanager)
Global and Chinese markets in hair conditioner 2022-2028: Research Report on technology, participants, trends, market size and share