select sum until certain amount and then update certain fields based on condition

后端 未结 0 988
太阳男子
太阳男子 2020-12-04 23:08

I have a query that changes the status of some fields and rate of another field.

fiddle expample

The logic checks the sum of all rows until a value of 23 is re

相关标签:
回答
  • 消灭零回复
提交回复
热议问题