From 5a7595bbd49d20100c748415fbf7dfa7b806416c Mon Sep 17 00:00:00 2001 From: yuanguangxin <274841922@qq.com> Date: Tue, 11 Aug 2020 12:29:29 +0800 Subject: [PATCH] update --- Rocket.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocket.md b/Rocket.md index 1afa401..e3ba6d9 100644 --- a/Rocket.md +++ b/Rocket.md @@ -963,7 +963,7 @@ public class Test { 6. 希尔排序:先将整个待排记录序列分割成为若干子序列分别进行直接插入排序,待整个序列中的记录基本有序时再对全体记录进行一次直接插入排序。 7. 归并排序:把有序表划分成元素个数尽量相等的两半,把两半元素分别排序,两个有序表合并成一个 -## 实际问题 +## 其他 ### 高并发系统的设计与实现 @@ -992,7 +992,7 @@ public class Test { update products set quantity = quantity-1 WHERE id=3; select quantity from products WHERE id=3 for update; ``` -1. update语句在更新的同时加上一个条件 +3. update语句在更新的同时加上一个条件 ``` quantity = select quantity from products WHERE id=3; update products set quantity = ($quantity-1) WHERE id=3 and queantity = $quantity;