mysql学习打卡day19

今日成果:

update invoices
set payment_total = invoice_total *0.5,payment_date = due_date
where invoice_id = 1;
-- 更新单行记录 

update orders
set comments = '金牌顾客'
where customer_id in (select customer_id from customers where points > 3000);
-- 更新多条记录

delete from invoices
where invoice_id = 1;
-- 删除某条记录

感谢各位读者查阅,欢迎各位👍点赞✍评论⭐收藏+关注!

相关推荐

  1. mysql学习day19

    2024-01-30 04:40:02       57 阅读
  2. mysql学习day17

    2024-01-30 04:40:02       60 阅读
  3. day19

    2024-01-30 04:40:02       18 阅读
  4. mysql学习day22

    2024-01-30 04:40:02       41 阅读
  5. mysql学习day24

    2024-01-30 04:40:02       55 阅读
  6. day13

    2024-01-30 04:40:02       61 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-30 04:40:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-30 04:40:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-30 04:40:02       82 阅读
  4. Python语言-面向对象

    2024-01-30 04:40:02       91 阅读

热门阅读

  1. 深入了解 LCC:智能驾驶的关键技术

    2024-01-30 04:40:02       53 阅读
  2. 深入理解vue相关的底层原理

    2024-01-30 04:40:02       46 阅读
  3. Qt程序设计-半透明遮罩效果窗口实现

    2024-01-30 04:40:02       56 阅读
  4. LeetCode 第十七天

    2024-01-30 04:40:02       65 阅读
  5. CountDownLatch使用及原理介绍

    2024-01-30 04:40:02       64 阅读
  6. AcWing.873.欧拉函数

    2024-01-30 04:40:02       45 阅读
  7. VUE就是最强!

    2024-01-30 04:40:02       45 阅读
  8. 十个鼠标事件

    2024-01-30 04:40:02       63 阅读
  9. 1.基于C#的Dbf读写(文件结构概述)

    2024-01-30 04:40:02       51 阅读
  10. cpp-stub 打桩失败

    2024-01-30 04:40:02       60 阅读
  11. 题解:CF1922C(Closest Cities)

    2024-01-30 04:40:02       51 阅读