当前位置:网站首页>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%";
边栏推荐
- 【深度优先搜索】312.戳气球
- echo $?
- 全渠道、多场景、跨平台,App如何借助数据分析渠道流量
- 【无标题】
- SSH, SCP command appears permission denied, please try again solution
- LSP 是什么
- Solution to the problem of compilation error due to repeated third-party package names
- Selection of webrtc video codec type VP8 H264 or other? (openh264 encoding, ffmpeg decoding)
- Blog post index summary --c #
- Global and Chinese market of electronic pet door 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
The IE mode tab of Microsoft edge browser is stuck, which has been fixed by rolling back the update
String constant pool, class constant pool, and runtime constant pool
创建对象的时候堆内存的分配
Internationalization configuration
What is in the method area - class file, class file constant pool, runtime constant pool
【LeetCode】59. 螺旋矩阵 II
P1296 whispers of cows (quick row + binary search)
量化投资学习——经典书籍介绍
開發者,微服務架構到底是什麼?
Omni channel, multi scenario and cross platform, how does app analyze channel traffic with data
随机推荐
1. sum of two numbers (leetcode topic)
[untitled]
String constant pool, class constant pool, and runtime constant pool
Detailed explanation of winsorflow quantum installation process
What should the preview do?
String constant pool, class constant pool, and runtime constant pool
jar版本冲突问题解决
基础-MySQL
2. 合并两个有序数组
Use of exec series functions (EXECL, execlp, execle, execv, execvp)
MySQL第十一作业-视图的应用
C中字符串基本操作
Threading model in webrtc native
如何更改微信小程序二维码物料颜色
Recyclerview implements flow layout (LinearLayout with line wrap) (flexboxlayoutmanager)
【无标题】
What is a botnet
Establishment of smart dialogue platform for wechat official account
Function run time
【深度优先搜索】312.戳气球