当前位置:网站首页>How to solve the problem of database?
How to solve the problem of database?
2022-06-13 01:06:00 【CSDN Q & A】
In practical work, we encounter this kind of problem , For example, the batch lock function , The same order type , Different serial numbers , Operate a storage location at the same time , adopt for Loop to operate , for the first time for loop , Don't order 5101, Order number 202206060946, Order No 0001, The first time you query, you get CS-ZD-001 Storehouse , The available inventory quantity of the location is 800, Then subtract it for the first time 800, be left over 0, And the location status is changed to Y Occupy , But for the second time for When the loop queries again , Or get the current one CS-ZD-001 Location of , Because it is attached to the transaction , He did not submit to the database , Is there any good logic or method to solve it , I hope the second query is CS-ZD-001 The available inventory quantity of is 0, And the state changes to Y, So you won't get
边栏推荐
- Get preview of precast body
- [003] embedded learning: creating project templates - using stm32cubemx
- Canvas game 2048 free map size
- 蓝桥杯单片机第七届决赛
- Jenkins持续集成操作
- The grass is bearing seeds
- Mysql database password modification
- How to choose stocks? Which indicator strategy is reliable? Quantitative analysis and comparison of strategic returns of BBI, MTM, obv, CCI and priceosc indicators
- Et5.0 value type generation
- Status of the thread
猜你喜欢

gpu加速pytorch能用吗?

Quantitative investment traditional index investment decision vs Monte Carlo simulation method

spiral matrix visit Search a 2D Matrix

Today's sleep quality record 74 points
![[JS component] dazzle radio box and multi box](/img/2a/00620bee312972db93e1db4313385f.jpg)
[JS component] dazzle radio box and multi box
![[JS component] custom paging](/img/a7/42082c72ad8f2af1a52e1ab1293790.jpg)
[JS component] custom paging
![[Latex] 插入圖片](/img/0b/3304aaa03d3fea3ebb93b0348c3131.png)
[Latex] 插入圖片
![[network protocol] problems and solutions in the use of LwIP](/img/25/d064a761724936b8f35ee0c779e597.jpg)
[network protocol] problems and solutions in the use of LwIP

redis

Mysql database password modification
随机推荐
Physical orbit simulation
Quantitative investment traditional index investment decision vs Monte Carlo simulation method
三栏简约typecho主题Lanstar/蓝星typecho主题
Minimum spanning tree problem
Et5.0 value type generation
Illustrator tutorial, how to add dashes and arrows in illustrator?
深度学习模型剪枝
(01). Net Maui actual construction project
leetcode 206. Reverse linked list
Aof persistence
About_ int128
[network protocol] problems and solutions in the use of LwIP
Lessons learned from the NLP part of the course "Baidu architects hands-on deep learning"
leetode. 242. valid Letter heteronyms
Characteristics of transactions - persistence (implementation principle)
Leetcode-9-palindromes (simple)
Android Weather
Quick power explanation
How many steps are appropriate for each cycle of deep learning?
Andersen global expands its business in northern Europe through cooperation agreements in Finland and Denmark